Functions | |
u_string_t * | var_get_name_s (var_t *v) |
Get name u_string_t of a variable. | |
u_string_t * | var_get_value_s (var_t *v) |
Get u_string_t value of a variable. | |
const char * | var_get_name (var_t *v) |
Get the name of a variable. | |
const char * | var_get_value (var_t *v) |
Get the value of a variable. | |
size_t | var_get_value_size (var_t *v) |
Get the size of a variable value. | |
int | var_set (var_t *var, const char *name, const char *value) |
Set the name and value of a variable. | |
int | var_set_name (var_t *v, const char *name) |
Set the name of a variable. | |
int | var_set_value (var_t *v, const char *value) |
Set the value of a variable. | |
int | var_set_bin_value (var_t *v, const char *data, size_t size) |
Set binary value of a variable. | |
u_string_t * | vars_get_value_s (vars_t *vs, const char *name) |
Get u_string_t value of a variable. | |
var_t * | vars_getn (vars_t *vs, size_t i) |
Get ith variable. | |
size_t | vars_count (vars_t *vs) |
Count the number of variables. | |
size_t | vars_countn (vars_t *vs, const char *name) |
Count the number of variables with given name. | |
int | vars_add_urlvar (vars_t *vs, const char *cstr, var_t **v) |
Add an URL variable. | |
var_t * | vars_geti (vars_t *vs, const char *var_name, size_t i) |
Get i-th variable with given name. | |
var_t * | vars_get (vars_t *vs, const char *var_name) |
Get a variable with given name. | |
int | vars_geti_value_i (vars_t *vs, const char *name, size_t ith) |
Get the integer value of a variable with a given name and index. | |
u_string_t * | vars_geti_value_s (vars_t *vs, const char *name, size_t ith) |
Get u_string_t value of i-th variable. | |
int | vars_get_value_i (vars_t *vs, const char *name) |
Get the integer value of a variable with a given name. | |
const char * | vars_geti_value (vars_t *vs, const char *name, size_t ith) |
Get the value of the variable at a given index. | |
const char * | vars_get_value (vars_t *vs, const char *name) |
Get the value of the variable with given name. | |
void | vars_foreach (vars_t *vs, int(*cb)(var_t *, void *), void *arg) |
Execute a function on a list of variables. |
|
Return an u_string_t containing the name string of variable
Definition at line 29 of file var.c. References var_s::sname. |
|
Return an u_string_t containing the name string of variable
Definition at line 46 of file var.c. References var_s::data, var_s::size, and var_s::svalue. Referenced by vars_get_value_s(), and vars_geti_value_s(). |
|
Return a
Definition at line 136 of file var.c. References var_s::sname. |
|
Return a
Definition at line 153 of file var.c. References var_s::data. Referenced by request_get_arg(), request_get_cookie(), session_get(), and vars_geti_value(). |
|
Return a size_t with the value size of variable
Definition at line 170 of file var.c. References var_s::size. |
|
Set variable
Definition at line 189 of file var.c. References var_set_name(), and var_set_value(). |
|
Set the name of variable
Definition at line 214 of file var.c. References var_s::sname. Referenced by var_set(). |
|
Set the value of variable
Definition at line 237 of file var.c. References var_set_bin_value(). Referenced by session_set(), and var_set(). |
|
Set binary value of variable
Definition at line 258 of file var.c. References var_s::data, var_s::size, and var_s::svalue. Referenced by var_set_value(). |
|
Return an
Definition at line 39 of file vars.c. References var_get_value_s(), and vars_get(). |
|
Return the
Definition at line 121 of file vars.c. Referenced by session_clean(). |
|
Return a the number of variables in a list
Definition at line 148 of file vars.c. Referenced by request_get_uploaded_file(). |
|
Return a the number of variables in a list with given name
Definition at line 166 of file vars.c. References var_s::sname. |
|
Parse the "name=value" string
Definition at line 195 of file vars.c. References u_urlncpy(). |
|
Return the
Definition at line 311 of file vars.c. References var_s::sname. Referenced by request_get_uploaded_file(), vars_get(), vars_geti_value(), and vars_geti_value_s(). |
|
Return a
Definition at line 344 of file vars.c. References vars_geti(). Referenced by request_get_arg(), request_get_cookie(), session_del(), session_get(), session_set(), and vars_get_value_s(). |
|
Get the integer value of the variable with name
Definition at line 367 of file vars.c. References vars_geti_value(). Referenced by vars_get_value_i(). |
|
Return an
Definition at line 394 of file vars.c. References var_get_value_s(), and vars_geti(). |
|
Return the integer value of the variable with name
Definition at line 421 of file vars.c. References vars_geti_value_i(). |
|
Return the string value of the variable with name
Definition at line 444 of file vars.c. References var_get_value(), and vars_geti(). Referenced by vars_get_value(), and vars_geti_value_i(). |
|
Return the string value of the variable with name
Definition at line 469 of file vars.c. References vars_geti_value(). |
|
Execute function
|