Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

vars.c File Reference

Go to the source code of this file.

Functions

 TAILQ_HEAD (var_list_s, var_s)
u_string_t * vars_get_value_s (vars_t *vs, const char *name)
 Get u_string_t value of a variable.
int vars_create (vars_t **pvs)
int vars_free (vars_t *vs)
int vars_add (vars_t *vs, var_t *v)
int vars_del (vars_t *vs, var_t *v)
var_tvars_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.
int vars_add_strvar (vars_t *vs, const char *str)
var_tvars_geti (vars_t *vs, const char *var_name, size_t i)
 Get i-th variable with given name.
var_tvars_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.


Function Documentation

TAILQ_HEAD var_list_s  ,
var_s 
 


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved