RTS API Documentation  1.10.11
Data Fields
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:

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
 
struct switch_timer_interfacenext
 

Detailed Description

A table of functions that a timer module implements.

Definition at line 243 of file switch_module_interfaces.h.

Field Documentation

◆ interface_name

const char* switch_timer_interface::interface_name

◆ next

struct switch_timer_interface* switch_timer_interface::next

◆ parent

switch_loadable_module_interface_t* switch_timer_interface::parent

Definition at line 261 of file switch_module_interfaces.h.

◆ reflock

switch_mutex_t* switch_timer_interface::reflock

Definition at line 260 of file switch_module_interfaces.h.

◆ refs

int switch_timer_interface::refs

Definition at line 259 of file switch_module_interfaces.h.

◆ rwlock

switch_thread_rwlock_t* switch_timer_interface::rwlock

Definition at line 258 of file switch_module_interfaces.h.

◆ timer_check

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

function to check if the current step has expired

Definition at line 255 of file switch_module_interfaces.h.

Referenced by switch_core_timer_check(), and SWITCH_MODULE_LOAD_FUNCTION().

◆ timer_destroy

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

function to deallocate the timer

Definition at line 257 of file switch_module_interfaces.h.

Referenced by switch_core_timer_destroy(), and SWITCH_MODULE_LOAD_FUNCTION().

◆ timer_init

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

function to allocate the timer

Definition at line 247 of file switch_module_interfaces.h.

Referenced by switch_core_timer_init(), and SWITCH_MODULE_LOAD_FUNCTION().

◆ timer_next

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

function to wait for one cycle to pass

Definition at line 249 of file switch_module_interfaces.h.

Referenced by switch_core_timer_next(), and SWITCH_MODULE_LOAD_FUNCTION().

◆ timer_step

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

function to step the timer one step

Definition at line 251 of file switch_module_interfaces.h.

Referenced by switch_core_timer_step(), and SWITCH_MODULE_LOAD_FUNCTION().

◆ timer_sync

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

function to reset the timer

Definition at line 253 of file switch_module_interfaces.h.

Referenced by switch_core_timer_sync(), and SWITCH_MODULE_LOAD_FUNCTION().


The documentation for this struct was generated from the following file: