presence_xml.c File Reference

Kamailio Presence_XML :: Core. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libxml/parser.h>
#include <time.h>
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../str.h"
#include "../../ut.h"
#include "../../parser/msg_parser.h"
#include "../../parser/parse_uri.h"
#include "../../mem/mem.h"
#include "../presence/bind_presence.h"
#include "../presence/hash.h"
#include "../presence/notify.h"
#include "../xcap_client/xcap_functions.h"
#include "../sl/sl_api.h"
#include "pidf.h"
#include "add_events.h"
#include "presence_xml.h"

Include dependency graph for presence_xml.c:

Go to the source code of this file.

Defines

#define S_TABLE_VERSION   3

Functions

static int child_init (int)
static void destroy (void)
static struct mi_rootdum (struct mi_root *cmd, void *param)
static void free_xs_list (xcap_serv_t *xs_list, int mem_type)
static int mi_child_init (void)
static int mod_init (void)
static int pxml_add_xcap_server (modparam_t type, void *val)
static int shm_copy_xcap_list (void)
static int xcap_doc_updated (int doc_type, str xid, char *doc)

Variables

str db_url = str_init(DEFAULT_DB_URL)
int disable_bla = 0
int disable_presence = 0
int disable_winfo = 0
struct module_exports exports
int force_active = 0
int integrated_xcap_server = 0
static mi_export_t mi_cmds []
static param_export_t params []
int pidf_manipulation = 0
add_event_t pres_add_event
pres_get_sphere_t pres_get_sphere
update_watchers_t pres_update_watchers
db_con_tpxml_db = NULL
db_func_t pxml_dbf
struct sl_binds slb
xcapGetNewDoc_t xcap_GetNewDoc
str xcap_table = str_init("xcap")
xcap_serv_txs_list = NULL


Detailed Description

Kamailio Presence_XML :: Core.

Definition in file presence_xml.c.


Define Documentation

#define S_TABLE_VERSION   3

Definition at line 61 of file presence_xml.c.


Function Documentation

static int child_init ( int  rank  )  [static]

Definition at line 276 of file presence_xml.c.

References db_func::init, LM_CRIT, LM_DBG, LM_ERR, NULL, and db_func::use_table.

static void destroy ( void   )  [static]

static struct mi_root * dum ( struct mi_root cmd,
void *  param 
) [static, read]

Definition at line 462 of file presence_xml.c.

static void free_xs_list ( xcap_serv_t xs_list,
int  mem_type 
) [static]

Definition at line 423 of file presence_xml.c.

References xcap_serv::next, NULL, pkg_free, shm_free, and SHM_MEM_TYPE.

Referenced by pxml_add_xcap_server(), and shm_copy_xcap_list().

static int mi_child_init ( void   )  [static]

Definition at line 251 of file presence_xml.c.

References db_func::init, LM_CRIT, LM_DBG, LM_ERR, NULL, and db_func::use_table.

static int mod_init ( void   )  [static]

static int pxml_add_xcap_server ( modparam_t  type,
void *  val 
) [static]

static int shm_copy_xcap_list ( void   )  [static]

static int xcap_doc_updated ( int  doc_type,
str  xid,
char *  doc 
) [static]

Definition at line 441 of file presence_xml.c.

References _str::len, LM_ERR, pres_ev::name, PRES_LEN, pres_update_watchers, and _str::s.

Referenced by mod_init().


Variable Documentation

str db_url = str_init(DEFAULT_DB_URL)

Definition at line 83 of file presence_xml.c.

int disable_bla = 0

Definition at line 90 of file presence_xml.c.

Referenced by xml_add_events().

Definition at line 88 of file presence_xml.c.

Referenced by xml_add_events().

int disable_winfo = 0

Definition at line 89 of file presence_xml.c.

Referenced by xml_add_events().

module exports

Definition at line 122 of file presence_xml.c.

int force_active = 0

Definition at line 86 of file presence_xml.c.

Referenced by get_rules_doc(), mod_init(), and shm_copy_xcap_list().

mi_export_t mi_cmds[] [static]

Initial value:

 {
   { "dum",             dum,          0,  0,  mi_child_init},
   {  0,                0,            0,  0,        0      }
}

Definition at line 116 of file presence_xml.c.

param_export_t params[] [static]

Definition at line 103 of file presence_xml.c.

Definition at line 85 of file presence_xml.c.

Referenced by agregate_xmls(), and pres_agg_nbody().

module variables

Definition at line 76 of file presence_xml.c.

Definition at line 78 of file presence_xml.c.

Referenced by get_rule_node(), and mod_init().

Definition at line 77 of file presence_xml.c.

Referenced by mod_init(), and xcap_doc_updated().

db_con_t* pxml_db = NULL

Definition at line 96 of file presence_xml.c.

Referenced by get_rules_doc().

Definition at line 97 of file presence_xml.c.

Referenced by get_rules_doc().

struct sl_binds slb

SL binds

Definition at line 93 of file presence_xml.c.

Definition at line 101 of file presence_xml.c.

Referenced by get_resource_list(), http_get_rules_doc(), and mod_init().

str xcap_table = str_init("xcap")

Definition at line 82 of file presence_xml.c.

Referenced by get_rules_doc().

Definition at line 87 of file presence_xml.c.

Referenced by http_get_rules_doc().


Generated on Thu May 24 08:01:15 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6