RTS API Documentation  1.10.11
Data Fields
switch_limit_interface Struct Reference

Abstract interface to a limit module. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_limit_interface:

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_trwlock
 
int refs
 
switch_mutex_treflock
 
switch_loadable_module_interface_tparent
 
struct switch_limit_interfacenext
 

Detailed Description

Abstract interface to a limit module.

Definition at line 562 of file switch_module_interfaces.h.

Field Documentation

◆ incr

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 566 of file switch_module_interfaces.h.

Referenced by switch_limit_incr().

◆ interface_name

const char* switch_limit_interface::interface_name

name of the interface

Definition at line 564 of file switch_module_interfaces.h.

Referenced by switch_loadable_module_process(), and switch_loadable_module_unprocess().

◆ interval_reset

switch_status_t(* switch_limit_interface::interval_reset) (const char *realm, const char *resource)

reset interval counter

Definition at line 576 of file switch_module_interfaces.h.

Referenced by switch_limit_interval_reset().

◆ next

struct switch_limit_interface* switch_limit_interface::next

◆ parent

switch_loadable_module_interface_t* switch_limit_interface::parent

Definition at line 581 of file switch_module_interfaces.h.

◆ reflock

switch_mutex_t* switch_limit_interface::reflock

Definition at line 580 of file switch_module_interfaces.h.

◆ refs

int switch_limit_interface::refs

Definition at line 579 of file switch_module_interfaces.h.

◆ release

switch_status_t(* switch_limit_interface::release) (switch_core_session_t *session, const char *realm, const char *resource)

release

Definition at line 568 of file switch_module_interfaces.h.

Referenced by switch_limit_release().

◆ reset

switch_status_t(* switch_limit_interface::reset) (void)

reset counters

Definition at line 572 of file switch_module_interfaces.h.

Referenced by switch_limit_reset().

◆ rwlock

switch_thread_rwlock_t* switch_limit_interface::rwlock

Definition at line 578 of file switch_module_interfaces.h.

◆ status

char*(* switch_limit_interface::status) (void)

freform status

Definition at line 574 of file switch_module_interfaces.h.

Referenced by switch_limit_status().

◆ usage

int(* switch_limit_interface::usage) (const char *realm, const char *resource, uint32_t *rcount)

usage for resource

Definition at line 570 of file switch_module_interfaces.h.

Referenced by switch_limit_usage().


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