Librepo library
1.7.13
C library for downloading linux repository metadata and packages
|
Data Structures | |
struct | LrVar |
Typedefs | |
typedef GSList | LrUrlVars |
Functions | |
LrUrlVars * | lr_urlvars_set (LrUrlVars *list, const char *var, const char *value) |
void | lr_urlvars_free (LrUrlVars *list) |
char * | lr_url_substitute (const char *url, LrUrlVars *list) |
typedef GSList LrUrlVars |
LrUrlVars list is in fact GSList
Definition at line 41 of file url_substitution.h.
char* lr_url_substitute | ( | const char * | url, |
LrUrlVars * | list | ||
) |
Substitute variables in the url. Returns a newly allocated string.
url | a url |
list | a list of variables and its substitutions or NULL |
void lr_urlvars_free | ( | LrUrlVars * | list | ) |
Frees all of the memory used by LrUrlVars.
list | a list of substitutions |
Set value of variable. Use variable names without '$' prefix. If value is NULL, variable will be removed from the list. If list is NULL, new list will be created.
list | a GSList or NULL for the first item |
var | a variable name (must not be a NULL) |
value | a variable value |