55 #if !defined(__AMXP_PROC_CTRL_H__)
56 #define __AMXP_PROC_CTRL_H__
int amxp_proc_ctrl_stop(amxp_proc_ctrl_t *proc)
Stops the child process.
void amxp_proc_ctrl_set_active_duration(amxp_proc_ctrl_t *proc, uint32_t minutes)
Sets the active time durations.
int(* amxp_proc_ctrl_cmd_t)(amxc_array_t *cmd, amxc_var_t *settings)
Command builder callback function signature.
struct _amxp_proc_ctrl amxp_proc_ctrl_t
Structure containing the child process control.
int amxp_proc_ctrl_new(amxp_proc_ctrl_t **proc, amxp_proc_ctrl_cmd_t cmd_build_fn)
Allocates and initializes an amxp_proc_ctrl_t.
int amxp_proc_ctrl_start(amxp_proc_ctrl_t *proc, uint32_t minutes, amxc_var_t *settings)
Launches the child process.
void amxp_proc_ctrl_delete(amxp_proc_ctrl_t **proc)
Clean-up and frees previously allocated memory.
void amxp_proc_ctrl_stop_childs(amxp_proc_ctrl_t *proc)
Stop all child processes of the child process.
int amxp_proc_ctrl_get_child_pids(amxp_proc_ctrl_t *proc)
Fetches the process ids of the children of the launched child process.
Structure containing the child process control.
amxp_proc_ctrl_cmd_t build
amxc_var_t child_proc_pids
Child process information structure.