Functions

parse_param.c File Reference

Parser :: Generic Parameter Parser. More...

#include <string.h>
#include "../str.h"
#include "../ut.h"
#include "../dprint.h"
#include "../trim.h"
#include "../mem/mem.h"
#include "../mem/shm_mem.h"
#include "parse_param.h"
Include dependency graph for parse_param.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file parse_param.c.


Function Documentation

int parse_param ( str _s,
pclass_t  _c,
param_hooks_t _h,
param_t t 
) [inline]

Only parse one parameter.

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:

static int parse_param_body ( str _s,
param_t _c 
) [inline, static]

It can be quoted string or a single token.

Definition at line 416 of file parse_param.c.

References param::body, parse_quoted_param(), parse_token_param(), and _str::s.

Referenced by parse_param().

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, 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:

void shm_free_params ( param_t _p  ) 

Free linked list of parameters from shared memory.

Definition at line 589 of file parse_param.c.

References do_free_params().

Referenced by do_free_rr().

Here is the call graph for this function:

Here is the caller graph for this function: