Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

nonsip_hooks.c File Reference

#include "nonsip_hooks.h"
#include "mem/mem.h"

Go to the source code of this file.

Functions

int init_nonsip_hooks ()
void destroy_nonsip_hooks ()
int register_nonsip_msg_hook (struct nonsip_hook *h)
int nonsip_msg_run_hooks (struct sip_msg *msg)

Variables

nonsip_hooknonsip_hooks
unsigned int nonsip_max_hooks = MAX_NONSIP_HOOKS
int last_hook_idx = 0


Function Documentation

void destroy_nonsip_hooks  ) 
 

Definition at line 63 of file nonsip_hooks.c.

References nonsip_hook::destroy, nonsip_hooks, and pkg_free.

Referenced by cleanup().

int init_nonsip_hooks  ) 
 

Definition at line 47 of file nonsip_hooks.c.

References L_ERR, LOG, nonsip_hooks, nonsip_max_hooks, and pkg_malloc.

Referenced by main().

int nonsip_msg_run_hooks struct sip_msg msg  ) 
 

Definition at line 111 of file nonsip_hooks.c.

References nonsip_hooks, and nonsip_hook::on_nonsip_req.

Referenced by receive_msg().

int register_nonsip_msg_hook struct nonsip_hook h  ) 
 

Definition at line 81 of file nonsip_hooks.c.

References last_hook_idx, nonsip_hooks, nonsip_max_hooks, and pkg_realloc.

Referenced by mod_init().


Variable Documentation

int last_hook_idx = 0 [static]
 

Definition at line 43 of file nonsip_hooks.c.

Referenced by register_nonsip_msg_hook().

struct nonsip_hook* nonsip_hooks [static]
 

Definition at line 41 of file nonsip_hooks.c.

Referenced by destroy_nonsip_hooks(), init_nonsip_hooks(), nonsip_msg_run_hooks(), and register_nonsip_msg_hook().

unsigned int nonsip_max_hooks = MAX_NONSIP_HOOKS [static]
 

Definition at line 42 of file nonsip_hooks.c.

Referenced by init_nonsip_hooks(), and register_nonsip_msg_hook().


Generated on Thu Jul 29 04:16:05 2010 for SIPExpressRouter by  doxygen 1.3.9.1