presence/event_list.c File Reference

Kamailio presence module event_list.h. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../../str.h"
#include "../../dprint.h"
#include "../../parser/parse_event.h"
#include "../../mem/shm_mem.h"
#include "../../mem/mem.h"
#include "event_list.h"
#include "hash.h"

Include dependency graph for presence/event_list.c:

Go to the source code of this file.

Defines

#define MAX_EVNAME_SIZE   20

Functions

int add_event (pres_ev_t *event)
pres_ev_tcontains_event (str *sname, event_t *parsed_event)
void destroy_evlist (void)
void free_event_params (param_t *params, int mem_type)
void free_pres_event (pres_ev_t *ev)
int get_event_list (str **ev_list)
evlist_tinit_evlist (void)
pres_ev_tsearch_event (event_t *event)
int search_event_params (event_t *ev, event_t *searched_ev)
event_tshm_copy_event (event_t *e)
void shm_free_event (event_t *ev)


Detailed Description

Kamailio presence module event_list.h.

Definition in file presence/event_list.c.


Define Documentation

#define MAX_EVNAME_SIZE   20

Definition at line 47 of file presence/event_list.c.

Referenced by get_event_list().


Function Documentation

int add_event ( pres_ev_t event  ) 

pres_ev_t* contains_event ( str sname,
event_t parsed_event 
)

void destroy_evlist ( void   ) 

Definition at line 430 of file presence/event_list.c.

References evlist::events, EvList, free_pres_event(), pres_ev::next, and shm_free.

void free_event_params ( param_t params,
int  mem_type 
)

void free_pres_event ( pres_ev_t ev  ) 

int get_event_list ( str **  ev_list  ) 

evlist_t* init_evlist ( void   ) 

Definition at line 268 of file presence/event_list.c.

References evlist::ev_count, evlist::events, LM_ERR, NULL, and shm_malloc().

Referenced by mod_init().

pres_ev_t* search_event ( event_t event  ) 

int search_event_params ( event_t ev,
event_t searched_ev 
)

Definition at line 355 of file presence/event_list.c.

References param::body, _str::len, param::name, param::next, event::params, and _str::s.

Referenced by search_event().

event_t* shm_copy_event ( event_t e  ) 

void shm_free_event ( event_t ev  ) 


Generated on Thu May 24 02:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6