xjab_presence.c File Reference

#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "xjab_presence.h"

Include dependency graph for xjab_presence.c:

Go to the source code of this file.

Functions

void xj_pres_cell_free (xj_pres_cell prc)
void xj_pres_cell_free_all (xj_pres_cell prc)
int xj_pres_cell_init (xj_pres_cell prc, str *uid, pa_callback_f f, void *p)
xj_pres_cell xj_pres_cell_new (void)
int xj_pres_cell_update (xj_pres_cell prc, pa_callback_f f, void *p)
xj_pres_cell xj_pres_list_add (xj_pres_list prl, xj_pres_cell prc)
xj_pres_cell xj_pres_list_check (xj_pres_list prl, str *uid)
int xj_pres_list_del (xj_pres_list prl, str *uid)
void xj_pres_list_free (xj_pres_list prl)
xj_pres_list xj_pres_list_init (void)
void xj_pres_list_notifyall (xj_pres_list prl, int s)


Function Documentation

void xj_pres_cell_free ( xj_pres_cell  prc  ) 

void xj_pres_cell_free_all ( xj_pres_cell  prc  ) 

free all presence cell linked to

Definition at line 74 of file xjab_presence.c.

References _xj_pres_cell::next, and xj_pres_cell_free().

Referenced by xj_pres_list_free().

int xj_pres_cell_init ( xj_pres_cell  prc,
str uid,
pa_callback_f  f,
void *  p 
)

xj_pres_cell xj_pres_cell_new ( void   ) 

int xj_pres_cell_update ( xj_pres_cell  prc,
pa_callback_f  f,
void *  p 
)

update attributes for a presence cell

Definition at line 109 of file xjab_presence.c.

References _xj_pres_cell::cbf, and _xj_pres_cell::cbp.

Referenced by xj_worker_check_watcher().

xj_pres_cell xj_pres_list_add ( xj_pres_list  prl,
xj_pres_cell  prc 
)

xj_pres_cell xj_pres_list_check ( xj_pres_list  prl,
str uid 
)

int xj_pres_list_del ( xj_pres_list  prl,
str uid 
)

void xj_pres_list_free ( xj_pres_list  prl  ) 

free the presence list

Definition at line 137 of file xjab_presence.c.

References _xj_pres_list::clist, NULL, pkg_free, and xj_pres_cell_free_all().

Referenced by xj_jcon_free().

xj_pres_list xj_pres_list_init ( void   ) 

init a presence list

Definition at line 121 of file xjab_presence.c.

References _xj_pres_list::clist, _xj_pres_list::nr, NULL, and pkg_malloc.

Referenced by xj_jcon_init().

void xj_pres_list_notifyall ( xj_pres_list  prl,
int  s 
)


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