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

nonsip_hooks.h File Reference

#include "parser/msg_parser.h"

Go to the source code of this file.

Data Structures

struct  nonsip_hook

Defines

#define MAX_NONSIP_HOOKS   1

Enumerations

enum  nonsip_msg_returns { NONSIP_MSG_ERROR = -1, NONSIP_MSG_DROP = 0, NONSIP_MSG_PASS, NONSIP_MSG_ACCEPT }

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)


Define Documentation

#define MAX_NONSIP_HOOKS   1
 

Definition at line 44 of file nonsip_hooks.h.


Enumeration Type Documentation

enum nonsip_msg_returns
 

Enumeration values:
NONSIP_MSG_ERROR 
NONSIP_MSG_DROP 
NONSIP_MSG_PASS 
NONSIP_MSG_ACCEPT 

Definition at line 46 of file nonsip_hooks.h.


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().


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