acc_extra.c File Reference

Acc:: Extra attributes. More...

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../../dprint.h"
#include "../../ut.h"
#include "../../usr_avp.h"
#include "../../mem/mem.h"
#include "acc_extra.h"

Include dependency graph for acc_extra.c:

Go to the source code of this file.

Defines

#define EQUAL   '='
#define MAX_ACC_INT_BUF   MAX_ACC_EXTRA
#define SEPARATOR   ';'

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_str)
struct acc_extraparse_acc_leg (char *extra_str)

Variables

static char int_buf [INT2STR_MAX_LEN *MAX_ACC_INT_BUF]
static char * static_detector = 0


Detailed Description

Acc:: Extra attributes.

Definition in file acc_extra.c.


Define Documentation

#define EQUAL   '='

Definition at line 53 of file acc_extra.c.

Referenced by parse_acc_extra(), and parse_extra_str().

#define MAX_ACC_INT_BUF   MAX_ACC_EXTRA

Definition at line 60 of file acc_extra.c.

#define SEPARATOR   ';'

Definition at line 54 of file acc_extra.c.

Referenced by parse_acc_extra(), and parse_extra_str().


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_str  )  [read]

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


Variable Documentation

char int_buf[INT2STR_MAX_LEN *MAX_ACC_INT_BUF] [static]

Definition at line 63 of file acc_extra.c.

Referenced by extra2strar(), and legs2strar().

char* static_detector = 0 [static]

Definition at line 65 of file acc_extra.c.

Referenced by extra2strar(), init_acc_extra(), and init_extra_engine().


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