FreeSWITCH API Documentation
1.7.0
|
Abstract interface to a limit module. More...
#include <switch_module_interfaces.h>
Data Fields | |
const char * | interface_name |
switch_status_t(* | incr )(switch_core_session_t *session, const char *realm, const char *resource, const int max, const int interval) |
switch_status_t(* | release )(switch_core_session_t *session, const char *realm, const char *resource) |
int(* | usage )(const char *realm, const char *resource, uint32_t *rcount) |
switch_status_t(* | reset )(void) |
char *(* | status )(void) |
switch_status_t(* | interval_reset )(const char *realm, const char *resource) |
switch_thread_rwlock_t * | rwlock |
int | refs |
switch_mutex_t * | reflock |
switch_loadable_module_interface_t * | parent |
struct switch_limit_interface * | next |
Abstract interface to a limit module.
Definition at line 576 of file switch_module_interfaces.h.
switch_status_t(* switch_limit_interface::incr)(switch_core_session_t *session, const char *realm, const char *resource, const int max, const int interval) |
increment
Definition at line 580 of file switch_module_interfaces.h.
Referenced by switch_limit_incr().
const char* switch_limit_interface::interface_name |
name of the interface
Definition at line 578 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
switch_status_t(* switch_limit_interface::interval_reset)(const char *realm, const char *resource) |
reset interval counter
Definition at line 590 of file switch_module_interfaces.h.
Referenced by switch_limit_interval_reset().
struct switch_limit_interface* switch_limit_interface::next |
Definition at line 596 of file switch_module_interfaces.h.
Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().
switch_loadable_module_interface_t* switch_limit_interface::parent |
Definition at line 595 of file switch_module_interfaces.h.
switch_mutex_t* switch_limit_interface::reflock |
Definition at line 594 of file switch_module_interfaces.h.
int switch_limit_interface::refs |
Definition at line 593 of file switch_module_interfaces.h.
switch_status_t(* switch_limit_interface::release)(switch_core_session_t *session, const char *realm, const char *resource) |
release
Definition at line 582 of file switch_module_interfaces.h.
Referenced by switch_limit_release().
switch_status_t(* switch_limit_interface::reset)(void) |
reset counters
Definition at line 586 of file switch_module_interfaces.h.
Referenced by switch_limit_reset().
switch_thread_rwlock_t* switch_limit_interface::rwlock |
Definition at line 592 of file switch_module_interfaces.h.
char*(* switch_limit_interface::status)(void) |
freform status
Definition at line 588 of file switch_module_interfaces.h.
Referenced by switch_limit_status().
int(* switch_limit_interface::usage)(const char *realm, const char *resource, uint32_t *rcount) |
usage for resource
Definition at line 584 of file switch_module_interfaces.h.
Referenced by switch_limit_usage().