Data Structures | Typedefs | Enumerations | Functions

parse_param.h File Reference

Parser :: Generic Parameter Parser. More...

#include <stdio.h>
#include "../str.h"
Include dependency graph for parse_param.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

Typedefs

Enumerations

Functions


Detailed Description

Definition in file parse_param.h.


Enumeration Type Documentation

enum pclass
Enumerator:
CLASS_ANY 

Any parameters, well-known hooks will be not used.

CLASS_CONTACT 

Contact parameters.

CLASS_URI 

URI parameters.

CLASS_EVENT_DIALOG 

Event dialog parameters.

Definition at line 79 of file parse_param.h.

enum ptype
Enumerator:
P_OTHER 

Unknown parameter.

P_Q 

Contact: q parameter.

P_EXPIRES 

Contact: expires parameter.

P_METHODS 

Contact: methods parameter.

P_RECEIVED 

Contact: received parameter.

P_TRANSPORT 

URI: transport parameter.

P_LR 

URI: lr parameter.

P_R2 

URI: r2 parameter (ser specific).

P_MADDR 

URI: maddr parameter.

P_TTL 

URI: ttl parameter.

P_DSTIP 

URI: dstip parameter.

P_DSTPORT 

URi: dstport parameter.

P_INSTANCE 

Contact: sip.instance parameter.

P_REG_ID 

Contact: reg-id parameter.

P_FTAG 

URI: ftag parameter.

P_CALL_ID 

Dialog event package: call-id.

P_FROM_TAG 

Dialog event package: from-tag.

P_TO_TAG 

Dialog event package: to-tag.

P_ISD 

Dialog event package: include-session-description.

P_SLA 

Dialog event package: sla.

P_MA 

Dialog event package: ma.

Definition at line 51 of file parse_param.h.


Function Documentation

int parse_param ( str _s,
pclass_t  _c,
param_hooks_t _h,
param_t t 
) [inline]
Returns:
: t: out parameter -1: on error 0: success, but expect a next paramter 1: success and exepect no more parameters

Definition at line 442 of file parse_param.c.

References param::body, param::len, _str::len, param::name, parse_param_body(), parse_param_name(), and _str::s.

Referenced by parse_params().

Here is the call graph for this function:

Here is the caller graph for this function:

int parse_params ( str _s,
pclass_t  _c,
param_hooks_t _h,
param_t **  _p 
)
Parameters:
_s is string containing parameters
_c is class of parameters
_h is pointer to structure that will be filled with pointer to well known parameters linked list of parsed parameters will be stored in the variable _p is pointing to
Returns:
The function returns 0 on success and negative number on an error
Parameters:
_s is string containing parameters, it will be updated to point behind the parameters
_c is class of parameters
_h is pointer to structure that will be filled with pointer to well known parameters
_p pointing to linked list where parsed parameters will be stored
Returns:
0 on success and negative number on an error

Definition at line 514 of file parse_param.c.

References free_params(), param::next, parse_param(), and _str::s.

Referenced by build_path_vector(), dbcl_cls_set_connections(), do_parse_rr_body(), get_boundary_param(), path_rr_callback(), tr_eval_paramlist(), and tr_eval_uri().

Here is the call graph for this function:

Here is the caller graph for this function: