33 #ifndef SWITCH_SCHEDULER_H 34 #define SWITCH_SCHEDULER_H
uint32_t switch_scheduler_del_task_group(const char *group)
Delete a scheduled task based on the group name.
#define SWITCH_END_EXTERN_C
void switch_scheduler_task_thread_start(void)
Start the scheduler system.
void switch_scheduler_task_thread_stop(void)
Stop the scheduler system.
uint32_t switch_scheduler_flag_t
uint32_t switch_scheduler_add_task(time_t task_runtime, switch_scheduler_func_t func, const char *desc, const char *group, uint32_t cmd_id, void *cmd_arg, switch_scheduler_flag_t flags)
Schedule a task in the future.
uint32_t switch_scheduler_del_task_id(uint32_t task_id)
Delete a scheduled task.
uint32_t switch_scheduler_add_task_ex(time_t task_runtime, switch_scheduler_func_t func, const char *desc, const char *group, uint32_t cmd_id, void *cmd_arg, switch_scheduler_flag_t flags, uint32_t *task_id)
Schedule a task in the future.
void(* switch_scheduler_func_t)(switch_scheduler_task_t *task)
#define SWITCH_BEGIN_EXTERN_C