#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"

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_root * | dum (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_t * | pxml_db = NULL |
| db_func_t | pxml_dbf |
| struct sl_binds | slb |
| xcapGetNewDoc_t | xcap_GetNewDoc |
| str | xcap_table = str_init("xcap") |
| xcap_serv_t * | xs_list = NULL |
Definition in file presence_xml.c.
| #define S_TABLE_VERSION 3 |
Definition at line 61 of file presence_xml.c.
| 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] |
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] |
module functions
init module function
Definition at line 140 of file presence_xml.c.
References presence_api::add_event, bind_presence(), bind_xcap(), db_func::close, db_bind_mod(), DB_CAP_ALL, DB_CAPABILITY, db_check_table_version(), find_export(), force_active, presence_api::get_sphere, xcap_api::getNewDoc, db_func::init, integrated_xcap_server, _str::len, LM_DBG, LM_ERR, load_sl_api(), NULL, pres_add_event, pres_get_sphere, PRES_RULES, pres_update_watchers, xcap_api::register_xcb, _str::s, S_TABLE_VERSION, shm_copy_xcap_list(), slb, presence_api::update_watchers_status, xcap_doc_updated(), xcap_GetNewDoc, xml_add_events(), and ZSW.
| static int pxml_add_xcap_server | ( | modparam_t | type, | |
| void * | val | |||
| ) | [static] |
Definition at line 313 of file presence_xml.c.
References xcap_serv::addr, ERR_MEM, free_xs_list(), _str::len, LM_ERR, xcap_serv::next, NULL, pkg_malloc, PKG_MEM_STR, PKG_MEM_TYPE, xcap_serv::port, port, _str::s, and str2int().
| static int shm_copy_xcap_list | ( | void | ) | [static] |
Definition at line 376 of file presence_xml.c.
References xcap_serv::addr, ERR_MEM, force_active, free_xs_list(), integrated_xcap_server, LM_ERR, xcap_serv::next, NULL, pkg_free, xcap_serv::port, SHARE_MEM, shm_malloc(), and SHM_MEM_TYPE.
Referenced by mod_init().
| 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().
Definition at line 83 of file presence_xml.c.
| int disable_bla = 0 |
| int disable_presence = 0 |
| int disable_winfo = 0 |
| struct module_exports exports |
module exports
Definition at line 122 of file presence_xml.c.
| int force_active = 0 |
Definition at line 84 of file presence_xml.c.
Referenced by get_rules_doc(), mod_init(), pres_apply_auth(), pres_watcher_allowed(), and shm_copy_xcap_list().
| int integrated_xcap_server = 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.
| int pidf_manipulation = 0 |
module variables
Definition at line 76 of file presence_xml.c.
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") |
| xcap_serv_t* xs_list = NULL |
1.5.6