acc_extra.h File Reference

Acc:: Extra attributes. More...

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

Include dependency graph for acc_extra.h:

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

Go to the source code of this file.

Data Structures

struct  acc_extra

Defines

#define MAX_ACC_EXTRA   64
#define MAX_ACC_LEG   16

Enumerations

enum  { TYPE_NULL = 0, TYPE_INT, TYPE_STR }

Functions

void destroy_extras (struct acc_extra *extra)
int extra2int (struct acc_extra *extra, int *attrs)
 converts the name of the extra from str to integer and stores it over str.len ; str.s is freed and made zero
int extra2strar (struct acc_extra *extra, struct sip_msg *rq, str *val_arr, int *int_arr, char *type_arr)
void init_acc_extra (void)
int legs2strar (struct acc_extra *legs, struct sip_msg *rq, str *val_arr, int *int_arr, char *type_arr, int start)
struct acc_extraparse_acc_extra (char *extra)
struct acc_extraparse_acc_leg (char *extra)


Detailed Description

Acc:: Extra attributes.

Definition in file acc_extra.h.


Define Documentation

#define MAX_ACC_EXTRA   64

Definition at line 58 of file acc_extra.h.

Referenced by extra2strar(), and parse_acc_extra().

#define MAX_ACC_LEG   16

Definition at line 59 of file acc_extra.h.

Referenced by legs2strar(), and parse_acc_leg().


Enumeration Type Documentation

anonymous enum

Enumerator:
TYPE_NULL 
TYPE_INT 
TYPE_STR 

Definition at line 61 of file acc_extra.h.


Function Documentation

void destroy_extras ( struct acc_extra extra  ) 

Definition at line 200 of file acc_extra.c.

References acc_extra::next, and pkg_free.

Referenced by destroy(), parse_acc_extra(), parse_acc_leg(), and parse_extra_str().

int extra2int ( struct acc_extra extra,
int *  attrs 
)

converts the name of the extra from str to integer and stores it over str.len ; str.s is freed and made zero

Definition at line 231 of file acc_extra.c.

References LM_ERR, acc_extra::next, and str2int().

int extra2strar ( struct acc_extra extra,
struct sip_msg rq,
str val_arr,
int *  int_arr,
char *  type_arr 
)

void init_acc_extra ( void   ) 

Definition at line 67 of file acc_extra.c.

References int2str(), and static_detector.

Referenced by mod_init().

int legs2strar ( struct acc_extra legs,
struct sip_msg rq,
str val_arr,
int *  int_arr,
char *  type_arr,
int  start 
)

struct acc_extra* parse_acc_extra ( char *  extra  )  [read]

struct acc_extra* parse_acc_leg ( char *  extra  )  [read]


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