xjab_presence.h File Reference

#include "../../str.h"
#include "xjab_base.h"

Include dependency graph for xjab_presence.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _xj_pres_cell
struct  _xj_pres_list

Defines

#define XJ_PRES_STATUS_NULL   0
#define XJ_PRES_STATUS_SUBS   1
#define XJ_PRES_STATUS_WAIT   2
#define XJ_PS_CHECK   -1
#define XJ_PS_OFFLINE   0
#define XJ_PS_ONLINE   1
#define XJ_PS_REFUSED   3
#define XJ_PS_TERMINATED   2

Typedefs

typedef struct _xj_pres_cell t_xj_pres_cell
typedef struct _xj_pres_list t_xj_pres_list
typedef struct _xj_pres_cellxj_pres_cell
typedef struct _xj_pres_listxj_pres_list

Functions

void xj_pres_cell_free (xj_pres_cell)
void xj_pres_cell_free_all (xj_pres_cell)
int xj_pres_cell_init (xj_pres_cell, str *, pa_callback_f, void *)
xj_pres_cell xj_pres_cell_new (void)
int xj_pres_cell_update (xj_pres_cell, pa_callback_f, void *)
xj_pres_cell xj_pres_list_add (xj_pres_list, xj_pres_cell)
xj_pres_cell xj_pres_list_check (xj_pres_list, str *)
int xj_pres_list_del (xj_pres_list, str *)
void xj_pres_list_free (xj_pres_list)
xj_pres_list xj_pres_list_init (void)
void xj_pres_list_notifyall (xj_pres_list, int)


Define Documentation

#define XJ_PRES_STATUS_NULL   0

Definition at line 37 of file xjab_presence.h.

Referenced by xj_pres_cell_new().

#define XJ_PRES_STATUS_SUBS   1

Definition at line 38 of file xjab_presence.h.

#define XJ_PRES_STATUS_WAIT   2

Definition at line 39 of file xjab_presence.h.

Referenced by xj_worker_check_watcher().

#define XJ_PS_CHECK   -1

Definition at line 31 of file xjab_presence.h.

Referenced by xj_pres_list_notifyall().

#define XJ_PS_OFFLINE   0

Definition at line 32 of file xjab_presence.h.

Referenced by xj_manage_jab(), xj_pres_cell_new(), and xj_worker_check_watcher().

#define XJ_PS_ONLINE   1

Definition at line 33 of file xjab_presence.h.

Referenced by xj_manage_jab().

#define XJ_PS_REFUSED   3

Definition at line 35 of file xjab_presence.h.

Referenced by xj_manage_jab().

#define XJ_PS_TERMINATED   2

Definition at line 34 of file xjab_presence.h.

Referenced by xj_worker_check_jcons().


Typedef Documentation

typedef struct _xj_pres_cell t_xj_pres_cell

typedef struct _xj_pres_list t_xj_pres_list

typedef struct _xj_pres_cell * xj_pres_cell

typedef struct _xj_pres_list * xj_pres_list


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