50 #ifndef _ASTERISK_TIMING_H
51 #define _ASTERISK_TIMING_H
53 #if defined(__cplusplus) || defined(c_plusplus)
77 int (*
timer_ack)(
int handle,
unsigned int quantity);
94 #define ast_register_timing_interface(i) _ast_register_timing_interface(i, ast_module_info->self)
230 #if defined(__cplusplus) || defined(c_plusplus)
unsigned int ast_timer_get_max_rate(const struct ast_timer *handle)
Get maximum rate supported for a timer.
int ast_unregister_timing_interface(void *handle)
Unregister a previously registered timing interface.
int(* timer_enable_continuous)(int handle)
void ast_timer_close(struct ast_timer *handle)
Close an opened timing handle.
struct ast_timer * ast_timer_open(void)
Open a timer.
enum ast_timer_event(* timer_get_event)(int handle)
void(* timer_close)(int handle)
int(* timer_disable_continuous)(int handle)
int(* timer_set_rate)(int handle, unsigned int rate)
int ast_timer_disable_continuous(const struct ast_timer *handle)
Disable continuous mode.
int ast_timer_ack(const struct ast_timer *handle, unsigned int quantity)
Acknowledge a timer event.
void * _ast_register_timing_interface(struct ast_timing_interface *funcs, struct ast_module *mod)
int(* timer_ack)(int handle, unsigned int quantity)
unsigned int(* timer_get_max_rate)(int handle)
int ast_timer_fd(const struct ast_timer *handle)
Get a poll()-able file descriptor for a timer.
int ast_timer_set_rate(const struct ast_timer *handle, unsigned int rate)
Set the timing tick rate.
int ast_timer_enable_continuous(const struct ast_timer *handle)
Enable continuous mode.
enum ast_timer_event ast_timer_get_event(const struct ast_timer *handle)
Retrieve timing event.
const char * ast_timer_get_name(const struct ast_timer *handle)
Get name of timer in use.