schedule.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #if !defined(_SPANDSP_SCHEDULE_H_)
00039 #define _SPANDSP_SCHEDULE_H_
00040
00041
00042 typedef struct span_sched_s span_sched_t;
00043
00044
00045 typedef struct span_sched_state_s span_sched_state_t;
00046
00047 typedef void (*span_sched_callback_func_t)(span_sched_state_t *s, void *user_data);
00048
00049 #if defined(__cplusplus)
00050 extern "C"
00051 {
00052 #endif
00053
00054 SPAN_DECLARE(uint64_t) span_schedule_next(span_sched_state_t *s);
00055 SPAN_DECLARE(uint64_t) span_schedule_time(span_sched_state_t *s);
00056
00057 SPAN_DECLARE(int) span_schedule_event(span_sched_state_t *s, int us, span_sched_callback_func_t function, void *user_data);
00058 SPAN_DECLARE(void) span_schedule_update(span_sched_state_t *s, int us);
00059 SPAN_DECLARE(void) span_schedule_del(span_sched_state_t *s, int id);
00060
00061 SPAN_DECLARE(span_sched_state_t *) span_schedule_init(span_sched_state_t *s);
00062 SPAN_DECLARE(int) span_schedule_release(span_sched_state_t *s);
00063 SPAN_DECLARE(int) span_schedule_free(span_sched_state_t *s);
00064
00065 #if defined(__cplusplus)
00066 }
00067 #endif
00068
00069 #endif
00070