iPXE
|
Request parameters. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static | LIST_HEAD (parameters) |
List of all parameter lists. More... | |
static void | free_parameters (struct refcnt *refcnt) |
Free request parameter list. More... | |
struct parameters * | find_parameters (const char *name) |
Find request parameter list by name. More... | |
struct parameters * | create_parameters (const char *name) |
Create request parameter list. More... | |
struct parameter * | add_parameter (struct parameters *params, const char *key, const char *value, unsigned int flags) |
Add request parameter. More... | |
Request parameters.
Definition in file params.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
List of all parameter lists.
|
static |
Free request parameter list.
refcnt | Reference count |
Definition at line 44 of file params.c.
References container_of, DBGC, parameters::entries, free, parameter::list, list_del, list_for_each_entry_safe, parameters::name, param, and tmp.
Referenced by create_parameters().
struct parameters* find_parameters | ( | const char * | name | ) |
Find request parameter list by name.
name | Parameter list name (may be NULL) |
params | Parameter list, or NULL if not found |
Definition at line 68 of file params.c.
References parameters::list, list_for_each_entry, parameters::name, name, NULL, and strcmp().
Referenced by create_parameters(), parse_parameters(), and parse_uri().
struct parameters* create_parameters | ( | const char * | name | ) |
Create request parameter list.
name | Parameter list name (may be NULL) |
params | Parameter list, or NULL on failure |
Definition at line 86 of file params.c.
References DBGC, parameters::entries, find_parameters(), free_parameters(), INIT_LIST_HEAD, parameters::list, list_add_tail, parameters::name, name, NULL, ref_init, parameters::refcnt, strcpy(), strlen(), and zalloc().
Referenced by params_exec(), and uri_params_okx().
struct parameter* add_parameter | ( | struct parameters * | params, |
const char * | key, | ||
const char * | value, | ||
unsigned int | flags | ||
) |
Add request parameter.
params | Parameter list |
key | Parameter key |
value | Parameter value |
flags | Parameter flags |
param | Parameter, or NULL on failure |
Definition at line 129 of file params.c.
References DBGC, parameters::entries, flags, key, list_add_tail, parameters::name, NULL, param, PARAMETER_FORM, PARAMETER_HEADER, strcpy(), strlen(), value, and zalloc().
Referenced by param_exec(), and uri_params_okx().