90typedef struct agt_timer_cb_t_ {
169 uint32 *ret_timer_id);
dlq provides general double-linked list and queue support:
void agt_timer_handler(void)
Handle an incoming server timer polling interval.
Definition: agt_timer.c:245
status_t agt_timer_restart(uint32 timer_id, uint32 seconds)
Restart a timer with a new timeout value.
Definition: agt_timer.c:388
void agt_timer_get_centi_timenow(uint64 *tnow)
Get the current time using the system or monotonic clock.
Definition: agt_timer.c:510
int(* agt_timer_fn_t)(uint32 timer_id, void *cookie)
timer callback function
Definition: agt_timer.h:85
void agt_timer_cleanup(void)
Cleanup the agt_timer module.
Definition: agt_timer.c:222
void agt_timer_init(void)
Initialize the agt_timer module.
Definition: agt_timer.c:199
status_t agt_timer_create(uint32 seconds, boolean is_periodic, agt_timer_fn_t timer_fn, void *cookie, uint32 *ret_timer_id)
Malloc and start a new timer control block.
Definition: agt_timer.c:327
void agt_timer_get_timenow(time_t *tnow)
Get the current time using the system or monotonic clock.
Definition: agt_timer.c:453
void agt_timer_delete(uint32 timer_id)
Remove and delete a timer control block.
Definition: agt_timer.c:422
status_t
global error return code
Definition: status_enum.h:210
Global error messages for status code enumerations.
Internal Timer control block, not for use outside agt_timer.c.
Definition: agt_timer.h:90
time_t timer_start_time
save timestamp last timer start
Definition: agt_timer.h:104
dlq_hdr_t qhdr
queue header
Definition: agt_timer.h:92
agt_timer_fn_t timer_cbfn
timer popped callback
Definition: agt_timer.h:101
uint32 timer_id
assigned timer ID
Definition: agt_timer.h:98
uint32 timer_duration
timer duration in seconds, must be 1 - N
Definition: agt_timer.h:107
boolean timer_periodic
TRUE if periodic timer, FALSE for 1-shot.
Definition: agt_timer.h:95
void * timer_cookie
timer cookie passed in timer registration
Definition: agt_timer.h:110