imc_mng.c File Reference

#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../dprint.h"
#include "imc_mng.h"

Include dependency graph for imc_mng.c:

Go to the source code of this file.

Defines

#define imc_get_hentry(_hid, _size)   ((_hid)&(_size-1))

Functions

imc_member_p imc_add_member (imc_room_p room, str *user, str *domain, int flags)
imc_room_p imc_add_room (str *name, str *domain, int flags)
int imc_del_member (imc_room_p room, str *user, str *domain)
int imc_del_room (str *name, str *domain)
imc_member_p imc_get_member (imc_room_p room, str *user, str *domain)
imc_room_p imc_get_room (str *name, str *domain)
int imc_htable_destroy (void)
int imc_htable_init (void)
int imc_release_room (imc_room_p room)

Variables

imc_hentry_p _imc_htable
char imc_cmd_start_char
int imc_hash_size


Define Documentation

#define imc_get_hentry ( _hid,
_size   )     ((_hid)&(_size-1))

Definition at line 43 of file imc_mng.c.

Referenced by imc_add_room(), imc_del_room(), imc_get_room(), and imc_release_room().


Function Documentation

imc_member_p imc_add_member ( imc_room_p  room,
str user,
str domain,
int  flags 
)

imc_room_p imc_add_room ( str name,
str domain,
int  flags 
)

int imc_del_member ( imc_room_p  room,
str user,
str domain 
)

int imc_del_room ( str name,
str domain 
)

imc_member_p imc_get_member ( imc_room_p  room,
str user,
str domain 
)

imc_room_p imc_get_room ( str name,
str domain 
)

int imc_htable_destroy ( void   ) 

destroy hash table

Definition at line 88 of file imc_mng.c.

References _imc_room::domain, imc_del_room(), imc_hash_size, lock, _imc_room::name, _imc_room::next, NULL, _imc_hentry::rooms, and shm_free.

Referenced by destroy().

int imc_htable_init ( void   ) 

hash thable init

Definition at line 48 of file imc_mng.c.

References imc_hash_size, LM_CRIT, LM_ERR, lock, NULL, shm_free, and shm_malloc().

Referenced by mod_init().

int imc_release_room ( imc_room_p  room  ) 


Variable Documentation

Definition at line 77 of file imc.c.

Definition at line 80 of file imc.c.

Referenced by imc_manager(), imc_parse_cmd(), and mod_init().


Generated on Wed May 23 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6