SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Namespaces | Macros
service.h File Reference

Service configuration and component callbacks. More...

#include <ucommon/linked.h>
#include <ucommon/thread.h>
#include <ucommon/string.h>
#include <ucommon/fsys.h>
#include <sipwitch/namespace.h>
#include <sipwitch/mapped.h>
#include <sipwitch/control.h>
#include <sipwitch/cdr.h>
Include dependency graph for service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  sipwitch::service
 System configuration instance and service functions. More...
 
struct  sipwitch::service::define
 Keyword and value pair definition lists. More...
 
class  sipwitch::service::keyclone
 Used to splice new chains onto an existing xml tree. More...
 
class  sipwitch::service::usernode
 Pointer to a provisioned user xml subtree. More...
 
class  sipwitch::service::pointer
 A pointer to a subtree in the xml configuration tree. More...
 
class  sipwitch::service::instance
 The current singleton instance of the active xml configuration tree. More...
 
class  sipwitch::service::callback
 Callback methods for objects managed under the service thread. More...
 
class  sipwitch::service::keymap
 Linked list of named xml node locations. More...
 

Namespaces

 sipwitch
 Common namespace for sipwitch server.
 

Macros

#define CONFIG_KEY_SIZE   177
 
#define RUNLEVELS   (sizeof(callback::runlevels) / sizeof(LinkedObject *))
 
#define PRIORITY_RUNLEVEL   0
 
#define DEFAULT_RUNLEVEL   1
 
#define MODULE_RUNLEVEL   (RUNLEVELS - 1)
 
#define GENERIC_RUNLEVEL   (RUNLEVELS - 2)
 

Detailed Description

Service configuration and component callbacks.

The service class offers tree based configuration subsystem that is parsed from XML configuration files. The service class also offers a callback bus for attaching server components and for controlling component startup and shutdown. This service bus can be extended through plugins as well as local objects in your server, all of which derive from the callback member class of service. Other features include support of snapshot dumps and checking functions to determine state of running servers.

Definition in file service.h.

Macro Definition Documentation

#define CONFIG_KEY_SIZE   177

Definition at line 65 of file service.h.

#define DEFAULT_RUNLEVEL   1

Definition at line 356 of file service.h.

#define GENERIC_RUNLEVEL   (RUNLEVELS - 2)

Definition at line 358 of file service.h.

#define MODULE_RUNLEVEL   (RUNLEVELS - 1)

Definition at line 357 of file service.h.

#define PRIORITY_RUNLEVEL   0

Definition at line 355 of file service.h.

#define RUNLEVELS   (sizeof(callback::runlevels) / sizeof(LinkedObject *))

Definition at line 354 of file service.h.