#include "xcap_callbacks.h"


Go to the source code of this file.
Data Structures | |
| struct | att_test |
| struct | ns_list |
| struct | step |
| struct | xcap_api |
| struct | xcap_doc_sel |
| struct | xcap_get_req |
| struct | xcap_node_sel |
Defines | |
| #define | GLOBAL_TYPE 2 |
| #define | IF_MATCH 1 |
| #define | IF_NONE_MATCH 2 |
| #define | INTEGRATED_SERVER 0 |
| #define | USERS_TYPE 1 |
| #define | XCAP_CL_MOD 1 |
Typedefs | |
| typedef struct att_test | attr_test_t |
| typedef int(* | bind_xcap_t )(xcap_api_t *api) |
| typedef struct ns_list | ns_list_t |
| typedef struct step | step_t |
| typedef struct xcap_api | xcap_api_t |
| typedef struct xcap_doc_sel | xcap_doc_sel_t |
| typedef char *(* | xcap_get_elem_t )(xcap_get_req_t req, char **etag) |
| typedef struct xcap_get_req | xcap_get_req_t |
| typedef struct xcap_node_sel | xcap_node_sel_t |
| typedef xcap_node_sel_t *(* | xcap_nodeSel_add_step_t )(xcap_node_sel_t *curr_sel, str *name, str *namespace, int pos, attr_test_t *attr_test, str *extra_sel) |
| typedef xcap_node_sel_t *(* | xcap_nodeSel_add_terminal_t )(xcap_node_sel_t *curr_sel, char *attr_sel, char *namespace_sel, char *extra_sel) |
| typedef void(* | xcap_nodeSel_free_t )(xcap_node_sel_t *node) |
| typedef xcap_node_sel_t *(* | xcap_nodeSel_init_t )(void) |
| typedef char *(* | xcapGetNewDoc_t )(xcap_get_req_t req, str user, str domain) |
Functions | |
| int | bind_xcap (xcap_api_t *api) |
| char * | send_http_get (char *path, unsigned int xcap_port, char *match_etag, int match_type, char **etag) |
| void | xcapFreeNodeSel (xcap_node_sel_t *node) |
| char * | xcapGetElem (xcap_get_req_t req, char **etag) |
| char * | xcapGetNewDoc (xcap_get_req_t req, str user, str domain) |
| xcap_node_sel_t * | xcapInitNodeSel (void) |
| xcap_node_sel_t * | xcapNodeSelAddStep (xcap_node_sel_t *curr_sel, str *name, str *namespace, int pos, attr_test_t *attr_test, str *extra_sel) |
| xcap_node_sel_t * | xcapNodeSelAddTerminal (xcap_node_sel_t *curr_sel, char *attr_sel, char *namespace_sel, char *extra_sel) |
| #define GLOBAL_TYPE 2 |
| #define IF_MATCH 1 |
| #define IF_NONE_MATCH 2 |
Definition at line 38 of file xcap_functions.h.
Referenced by get_resource_list(), and query_xcap_update().
| #define INTEGRATED_SERVER 0 |
Definition at line 43 of file xcap_functions.h.
| #define USERS_TYPE 1 |
Definition at line 34 of file xcap_functions.h.
Referenced by get_resource_list(), get_xcap_path(), http_get_rules_doc(), and parse_doc_url().
| #define XCAP_CL_MOD 1 |
Definition at line 44 of file xcap_functions.h.
Referenced by query_xcap_update(), and xcapGetNewDoc().
| typedef struct att_test attr_test_t |
| typedef int(* bind_xcap_t)(xcap_api_t *api) |
Definition at line 137 of file xcap_functions.h.
| typedef struct xcap_api xcap_api_t |
| typedef struct xcap_doc_sel xcap_doc_sel_t |
| typedef char*(* xcap_get_elem_t)(xcap_get_req_t req, char **etag) |
Definition at line 114 of file xcap_functions.h.
| typedef struct xcap_get_req xcap_get_req_t |
| typedef struct xcap_node_sel xcap_node_sel_t |
| typedef xcap_node_sel_t*(* xcap_nodeSel_add_step_t)(xcap_node_sel_t *curr_sel, str *name, str *namespace, int pos, attr_test_t *attr_test, str *extra_sel) |
Definition at line 102 of file xcap_functions.h.
| typedef xcap_node_sel_t*(* xcap_nodeSel_add_terminal_t)(xcap_node_sel_t *curr_sel, char *attr_sel, char *namespace_sel, char *extra_sel) |
Definition at line 108 of file xcap_functions.h.
| typedef void(* xcap_nodeSel_free_t)(xcap_node_sel_t *node) |
Definition at line 118 of file xcap_functions.h.
| typedef xcap_node_sel_t*(* xcap_nodeSel_init_t)(void) |
Definition at line 97 of file xcap_functions.h.
| typedef char*(* xcapGetNewDoc_t)(xcap_get_req_t req, str user, str domain) |
Definition at line 123 of file xcap_functions.h.
| int bind_xcap | ( | xcap_api_t * | api | ) |
Definition at line 51 of file xcap_functions.c.
References xcap_api::add_step, xcap_api::add_terminal, xcap_api::free_node_sel, xcap_api::get_elem, xcap_api::getNewDoc, xcap_api::int_node_sel, LM_ERR, register_xcapcb(), xcap_api::register_xcb, xcapFreeNodeSel(), xcapGetElem(), xcapGetNewDoc(), xcapInitNodeSel(), xcapNodeSelAddStep(), and xcapNodeSelAddTerminal().
Referenced by mod_init().
| char* send_http_get | ( | char * | path, | |
| unsigned int | xcap_port, | |||
| char * | match_etag, | |||
| int | match_type, | |||
| char ** | etag | |||
| ) |
Definition at line 519 of file xcap_functions.c.
References buf, get_xcap_etag(), IF_MATCH, len, LM_ERR, NULL, pkg_free, and write_function().
Referenced by query_xcap_update(), refreshXcapDoc(), xcapGetElem(), and xcapGetNewDoc().
| void xcapFreeNodeSel | ( | xcap_node_sel_t * | node | ) |
Definition at line 69 of file xcap_functions.c.
References ns_list::next, step::next, xcap_node_sel::ns_list, pkg_free, _str::s, s, xcap_node_sel::steps, step::val, and ns_list::value.
Referenced by bind_xcap().
| char* xcapGetElem | ( | xcap_get_req_t | req, | |
| char ** | etag | |||
| ) |
Definition at line 465 of file xcap_functions.c.
References xcap_get_req::etag, get_xcap_path(), LM_DBG, LM_ERR, xcap_get_req::match_type, NULL, pkg_free, xcap_get_req::port, and send_http_get().
Referenced by bind_xcap().
| char* xcapGetNewDoc | ( | xcap_get_req_t | req, | |
| str | user, | |||
| str | domain | |||
| ) |
Definition at line 306 of file xcap_functions.c.
References DB_INT, DB_STR, DB_STRING, xcap_get_req::doc_sel, xcap_doc_sel::doc_type, get_xcap_path(), db_func::insert, db_val_t::int_val, _str::len, LM_DBG, LM_ERR, db_val_t::nul, NULL, pkg_free, xcap_get_req::port, _str::s, send_http_get(), str_doc_col, str_doc_type_col, str_doc_uri_col, str_domain_col, str_etag_col, str_port_col, str_source_col, str_username_col, db_val_t::str_val, db_val_t::string_val, db_val_t::type, db_func::use_table, db_val_t::val, XCAP_CL_MOD, xcap_db, xcap_db_table, and xcap_dbf.
Referenced by bind_xcap().
| xcap_node_sel_t* xcapInitNodeSel | ( | void | ) |
Definition at line 96 of file xcap_functions.c.
References ERR_MEM, xcap_node_sel::last_ns, xcap_node_sel::last_step, xcap_node_sel::ns_list, NULL, pkg_free, pkg_malloc, PKG_MEM_STR, and xcap_node_sel::steps.
Referenced by bind_xcap().
| xcap_node_sel_t* xcapNodeSelAddStep | ( | xcap_node_sel_t * | curr_sel, | |
| str * | name, | |||
| str * | namespace, | |||
| int | pos, | |||
| attr_test_t * | attr_test, | |||
| str * | extra_sel | |||
| ) |
Definition at line 137 of file xcap_functions.c.
References ERR_MEM, xcap_node_sel::last_ns, xcap_node_sel::last_step, _str::len, LM_ERR, ns_list::name, att_test::name, ns_list::next, step::next, xcap_node_sel::ns_no, NULL, pkg_free, pkg_malloc, PKG_MEM_STR, _str::s, s, xcap_node_sel::size, step::val, ns_list::value, and att_test::value.
Referenced by bind_xcap().
| xcap_node_sel_t* xcapNodeSelAddTerminal | ( | xcap_node_sel_t * | curr_sel, | |
| char * | attr_sel, | |||
| char * | namespace_sel, | |||
| char * | extra_sel | |||
| ) |
1.5.6