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"
Go to the source code of this file.
Definition in file parse_param.c.
| 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().


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().


| int parse_params | ( | str * | _s, | |
| pclass_t | _c, | |||
| param_hooks_t * | _h, | |||
| param_t ** | _p | |||
| ) |
| _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 |
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().


| 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().


1.7.1