#include <libxml/parser.h>
#include "../../str.h"
#include "../presence/subscribe.h"
#include "../xcap_client/xcap_callbacks.h"


Go to the source code of this file.
Functions | |
| xmlNodePtr | get_rule_node (subs_t *subs, xmlDocPtr xcap_tree) |
| int | get_rules_doc (str *user, str *domain, int type, str **rules_doc) |
| int | pres_get_rules_doc (str *user, str *domain, str **rules_doc) |
| int | pres_watcher_allowed (subs_t *subs) |
Definition in file xcap_auth.h.
| xmlNodePtr get_rule_node | ( | subs_t * | subs, | |
| xmlDocPtr | xcap_tree | |||
| ) |
Definition at line 152 of file xcap_auth.c.
References domain, subscription::from_domain, subscription::from_user, _str::len, LM_DBG, LM_ERR, NULL, pkg_free, pres_get_sphere, subscription::pres_uri, _str::s, uandd_to_uri(), xml_parse_dateTime(), xmlDocGetNodeByName(), xmlNodeGetAttrContentByName(), and xmlNodeGetChildByName().
Referenced by pres_apply_auth(), and pres_watcher_allowed().
Definition at line 424 of file xcap_auth.c.
References hdr_field::body, DB_INT, DB_STR, ERR_MEM, force_active, db_func::free_result, http_get_rules_doc(), db_val_t::int_val, integrated_xcap_server, _str::len, LM_DBG, LM_ERR, db_res::n, db_val_t::nul, NULL, pkg_free, pkg_malloc, PKG_MEM_STR, pxml_db, pxml_dbf, db_func::query, ROW_VALUES, db_res::rows, _str::s, str_init, db_val_t::str_val, db_val_t::string_val, db_val_t::type, db_func::use_table, db_val_t::val, and xcap_table.
Referenced by agregate_xmls(), and pres_get_rules_doc().
Definition at line 418 of file xcap_auth.c.
References get_rules_doc(), and PRES_RULES.
Referenced by xml_add_events().
| int pres_watcher_allowed | ( | subs_t * | subs | ) |
Definition at line 52 of file xcap_auth.c.
References ACTIVE_STATUS, subscription::auth_rules_doc, force_active, get_rule_node(), _str::len, LM_DBG, LM_ERR, NULL, PENDING_STATUS, subscription::reason, _str::s, subscription::status, TERMINATED_STATUS, and xmlNodeGetChildByName().
Referenced by xml_add_events().
1.5.6