sl_cb.h File Reference

SL :: callbacks

More...

#include "../../str.h"
#include "../../ip_addr.h"
#include "../../parser/msg_parser.h"

Include dependency graph for sl_cb.h:

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

Go to the source code of this file.

Data Structures

struct  sl_callback
struct  sl_cb_param

Defines

#define SLCB_ACK_IN   (1<<1)
#define SLCB_REPLY_OUT   (1<<0)

Typedefs

typedef int(* register_slcb_t )(unsigned int types, sl_cb_t f, void *param)
typedef void( sl_cb_t )(unsigned int types, struct sip_msg *req, struct sl_cb_param *sl_param)

Functions

void destroy_slcb_lists (void)
int register_slcb (unsigned int types, sl_cb_t f, void *param)
void run_sl_callbacks (unsigned int types, struct sip_msg *req, str *buffer, int code, str *reason, union sockaddr_union *to)


Detailed Description

SL :: callbacks

Definition in file sl_cb.h.


Define Documentation

#define SLCB_ACK_IN   (1<<1)

Definition at line 70 of file sl_cb.h.

Referenced by mod_init(), and sl_filter_ACK().

#define SLCB_REPLY_OUT   (1<<0)

Definition at line 69 of file sl_cb.h.

Referenced by mod_init(), and sl_send_reply_helper().


Typedef Documentation

typedef int(* register_slcb_t)(unsigned int types, sl_cb_t f, void *param)

register callback function prototype

Definition at line 55 of file sl_cb.h.

typedef void( sl_cb_t)(unsigned int types, struct sip_msg *req, struct sl_cb_param *sl_param)

callback function prototype

Definition at line 52 of file sl_cb.h.


Function Documentation

void destroy_slcb_lists ( void   ) 

cleanup callback list

Definition at line 42 of file sl_cb.c.

References sl_callback::next, and pkg_free.

Referenced by mod_destroy().

int register_slcb ( unsigned int  types,
sl_cb_t  f,
void *  param 
)

register a SL callback

Definition at line 55 of file sl_cb.c.

References sl_callback::callback, sl_callback::id, LM_ERR, sl_callback::next, sl_callback::param, pkg_malloc, and sl_callback::types.

void run_sl_callbacks ( unsigned int  types,
struct sip_msg req,
str buffer,
int  code,
str reason,
union sockaddr_union to 
)


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