switch_timer_interface Struct Reference

A table of functions that a timer module implements. More...

#include <switch_module_interfaces.h>

Collaboration diagram for switch_timer_interface:

[legend]

Data Fields

const char * interface_name
switch_status_t(* timer_init )(switch_timer_t *)
switch_status_t(* timer_next )(switch_timer_t *)
switch_status_t(* timer_step )(switch_timer_t *)
switch_status_t(* timer_sync )(switch_timer_t *)
switch_status_t(* timer_check )(switch_timer_t *, switch_bool_t)
switch_status_t(* timer_destroy )(switch_timer_t *)
switch_thread_rwlock_trwlock
int refs
switch_mutex_treflock
switch_loadable_module_interface_tparent
switch_timer_interfacenext

Detailed Description

A table of functions that a timer module implements.

Definition at line 226 of file switch_module_interfaces.h.


Field Documentation

const char* switch_timer_interface::interface_name

the name of the interface

Definition at line 228 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), switch_loadable_module_unprocess(), and SWITCH_MODULE_LOAD_FUNCTION().

struct switch_timer_interface* switch_timer_interface::next

Definition at line 245 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

switch_loadable_module_interface_t* switch_timer_interface::parent

Definition at line 244 of file switch_module_interfaces.h.

switch_mutex_t* switch_timer_interface::reflock

Definition at line 243 of file switch_module_interfaces.h.

int switch_timer_interface::refs

Definition at line 242 of file switch_module_interfaces.h.

switch_thread_rwlock_t* switch_timer_interface::rwlock

Definition at line 241 of file switch_module_interfaces.h.

switch_status_t(* switch_timer_interface::timer_check)(switch_timer_t *, switch_bool_t)

function to check if the current step has expired

Referenced by SWITCH_MODULE_LOAD_FUNCTION().

switch_status_t(* switch_timer_interface::timer_destroy)(switch_timer_t *)

function to deallocate the timer

Referenced by SWITCH_MODULE_LOAD_FUNCTION().

switch_status_t(* switch_timer_interface::timer_init)(switch_timer_t *)

function to allocate the timer

Referenced by switch_core_timer_init(), and SWITCH_MODULE_LOAD_FUNCTION().

switch_status_t(* switch_timer_interface::timer_next)(switch_timer_t *)

function to wait for one cycle to pass

Referenced by SWITCH_MODULE_LOAD_FUNCTION().

switch_status_t(* switch_timer_interface::timer_step)(switch_timer_t *)

function to step the timer one step

Referenced by SWITCH_MODULE_LOAD_FUNCTION().

switch_status_t(* switch_timer_interface::timer_sync)(switch_timer_t *)

function to reset the timer

Referenced by SWITCH_MODULE_LOAD_FUNCTION().


The documentation for this struct was generated from the following file:
Generated on Wed May 16 04:00:35 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7