xcap_functions.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include <curl/curl.h>
#include "../../mem/mem.h"
#include "../../db/db.h"
#include "xcap_functions.h"
#include "xcap_client.h"
#include "../presence/hash.h"

Include dependency graph for xcap_functions.c:

Go to the source code of this file.

Defines

#define ETAG_HDR   "Etag: "
#define ETAG_HDR_LEN   strlen("Etag: ")

Functions

int bind_xcap (xcap_api_t *api)
char * get_node_selector (xcap_node_sel_t *node_sel)
size_t get_xcap_etag (void *ptr, size_t size, size_t nmemb, void *stream)
char * get_xcap_path (xcap_get_req_t req)
char * send_http_get (char *path, unsigned int xcap_port, char *match_etag, int match_type, char **etag)
size_t write_function (void *ptr, size_t size, size_t nmemb, void *stream)
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_txcapInitNodeSel (void)
xcap_node_sel_txcapNodeSelAddStep (xcap_node_sel_t *curr_sel, str *name, str *namespace, int pos, attr_test_t *attr_test, str *extra_sel)
xcap_node_sel_txcapNodeSelAddTerminal (xcap_node_sel_t *curr_sel, char *attr_sel, char *namespace_sel, char *extra_sel)


Define Documentation

#define ETAG_HDR   "Etag: "

Definition at line 45 of file xcap_functions.c.

Referenced by get_xcap_etag().

#define ETAG_HDR_LEN   strlen("Etag: ")

Definition at line 46 of file xcap_functions.c.

Referenced by get_xcap_etag().


Function Documentation

int bind_xcap ( xcap_api_t api  ) 

char* get_node_selector ( xcap_node_sel_t node_sel  ) 

size_t get_xcap_etag ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  stream 
)

Definition at line 496 of file xcap_functions.c.

References ERR_MEM, ETAG_HDR, ETAG_HDR_LEN, len, NULL, pkg_malloc, and PKG_MEM_STR.

Referenced by send_http_get().

char * get_xcap_path ( xcap_get_req_t  req  ) 

char* send_http_get ( char *  path,
unsigned int  xcap_port,
char *  match_etag,
int  match_type,
char **  etag 
)

size_t write_function ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  stream 
)

Definition at line 41 of file utils/functions.c.

References LM_ERR, and NULL.

Referenced by http_query(), and send_http_get().

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 
)

Definition at line 254 of file xcap_functions.c.

References NULL.

Referenced by bind_xcap().


Generated on Fri May 25 00:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6