imc_mng.h File Reference

#include "../../locking.h"
#include "../../str.h"
#include "../../parser/parse_from.h"

Include dependency graph for imc_mng.h:

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

Go to the source code of this file.

Data Structures

struct  _imc_hentry
struct  _imc_member
struct  _imc_room
struct  del_member

Defines

#define IMC_MEMBER_ADMIN   1<<1
#define IMC_MEMBER_DELETED   1<<3
#define IMC_MEMBER_INVITED   1<<2
#define IMC_MEMBER_OWNER   1<<0
#define IMC_MEMBER_SKIP   1<<4
#define IMC_ROOM_DELETED   1<<1
#define IMC_ROOM_PRIV   1<<0

Typedefs

typedef struct del_member del_member_t
typedef struct _imc_hentryimc_hentry_p
typedef struct _imc_hentry imc_hentry_t
typedef struct _imc_memberimc_member_p
typedef struct _imc_member imc_member_t
typedef struct _imc_roomimc_room_p
typedef struct _imc_room imc_room_t

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)


Define Documentation

#define IMC_MEMBER_ADMIN   1<<1

Definition at line 41 of file imc_mng.h.

Referenced by imc_handle_invite(), imc_handle_list(), and imc_handle_remove().

#define IMC_MEMBER_DELETED   1<<3

Definition at line 43 of file imc_mng.h.

Referenced by imc_handle_exit(), imc_handle_list(), imc_handle_remove(), and imc_room_broadcast().

#define IMC_MEMBER_INVITED   1<<2

#define IMC_MEMBER_OWNER   1<<0

#define IMC_MEMBER_SKIP   1<<4

Definition at line 44 of file imc_mng.h.

Referenced by imc_handle_list(), imc_handle_message(), and imc_room_broadcast().

#define IMC_ROOM_DELETED   1<<1

#define IMC_ROOM_PRIV   1<<0

Definition at line 57 of file imc_mng.h.

Referenced by imc_handle_create(), and imc_handle_join().


Typedef Documentation

typedef struct del_member del_member_t

typedef struct _imc_hentry * imc_hentry_p

typedef struct _imc_hentry imc_hentry_t

typedef struct _imc_member * imc_member_p

typedef struct _imc_member imc_member_t

typedef struct _imc_room * imc_room_p

typedef struct _imc_room imc_room_t


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  ) 


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