xjab_base.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 "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../parser/parse_uri.h"
#include "xjab_base.h"
#include "mdefines.h"

Include dependency graph for xjab_base.c:

Go to the source code of this file.

Functions

int xj_extract_aor (str *u, int t)
int xj_get_hash (str *x, str *y)
int xj_jkey_cmp (void *x, void *y)
void xj_jkey_free_p (void *p)
void xj_sipmsg_free (xj_sipmsg jsmsg)


Function Documentation

int xj_extract_aor ( str u,
int  t 
)

Definition at line 151 of file xjab_base.c.

References sip_uri::host, _str::len, LM_ERR, parse_uri(), _str::s, and sip_uri::user.

Referenced by xj_register_watcher(), and xjab_manage_sipmsg().

int xj_get_hash ( str x,
str y 
)

get the hash code - based on Andrei's function

Definition at line 44 of file xjab_base.c.

References _str::len, and _str::s.

Referenced by xj_jconf_init_jab(), xj_jconf_init_sip(), xj_pres_cell_init(), xj_pres_list_check(), xj_pres_list_del(), xj_register_watcher(), and xjab_manage_sipmsg().

int xj_jkey_cmp ( void *  x,
void *  y 
)

function used to compare two xj_jkey elements

Definition at line 92 of file xjab_base.c.

References _xj_jkey::hash, _xj_jkey::id, _str::len, NULL, and _str::s.

Referenced by xj_wlist_init().

void xj_jkey_free_p ( void *  p  ) 

free the information from a jkey

Definition at line 120 of file xjab_base.c.

References _M_SHM_FREE, id, and NULL.

Referenced by xj_wlist_clean_jobs(), xj_wlist_del(), xj_wlist_free(), and xj_wlist_init().

void xj_sipmsg_free ( xj_sipmsg  jsmsg  ) 

free a pointer to a t_jab_sipmsg structure > element where points 'from' MUST be deliberated separated

Definition at line 137 of file xjab_base.c.

References _M_SHM_FREE, _xj_sipmsg::msg, NULL, _str::s, and _xj_sipmsg::to.

Referenced by xj_worker_check_qmsg(), and xj_worker_process().


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