![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Implementation draft for a configuration system (2008). More...
Go to the source code of this file.
Implementation draft for a configuration system (2008).
Create a configitem from a single line of the config file.
Definition in file configitem.c.
#include "include/logging.h"#include "lib/llist.h"#include "lib/safeclib.h"#include "lib/tmpbuf.h"#include "common/config.h"#include "common/configitem.h"#include "common/configentry.h"#include <ctype.h>#include <stdint.h>Functions | |
| static LumieraConfigitem | parse_directive (LumieraConfigitem self, char *itr) |
| static LumieraConfigitem | parse_section (LumieraConfigitem self, char *itr) |
| static LumieraConfigitem | parse_configentry (LumieraConfigitem self, char *itr) |
| LumieraConfigitem | lumiera_configitem_init (LumieraConfigitem self) |
| LumieraConfigitem | lumiera_configitem_destroy (LumieraConfigitem self, LumieraConfigLookup lookup) |
| LumieraConfigitem | lumiera_configitem_new (const char *line) |
| void | lumiera_configitem_delete (LumieraConfigitem self, LumieraConfigLookup lookup) |
| LumieraConfigitem | lumiera_configitem_set_value (LumieraConfigitem self, const char *delim_value) |
| LumieraConfigitem | lumiera_configitem_move (LumieraConfigitem self, LumieraConfigitem source) |
| LumieraConfigitem | lumiera_configitem_parse (LumieraConfigitem self, const char *line) |
|
static |
Definition at line 206 of file configitem.c.
References LUMIERA_CONFIG_KEY_CHARS, LUMIERA_ERROR_SET, and NULL.
Referenced by lumiera_configitem_parse().
Here is the caller graph for this function:
|
static |
Definition at line 265 of file configitem.c.
References LUMIERA_CONFIG_KEY_CHARS, LUMIERA_ERROR_SET, and NULL.
Referenced by lumiera_configitem_parse().
Here is the caller graph for this function:
|
static |
Definition at line 335 of file configitem.c.
References LUMIERA_CONFIG_KEY_CHARS, lumiera_configentry_funcs, LUMIERA_ERROR_SET, and NULL.
Referenced by lumiera_configitem_parse().
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_init | ( | LumieraConfigitem | self | ) |
Definition at line 47 of file configitem.c.
References NULL.
Referenced by lumiera_config_init(), and lumiera_configitem_new().
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_destroy | ( | LumieraConfigitem | self, |
| LumieraConfigLookup | lookup | ||
| ) |
Definition at line 70 of file configitem.c.
References LLIST_WHILE_HEAD, lumiera_config_lookup_remove(), lumiera_configitem_delete(), and lumiera_free().
Referenced by lumiera_config_destroy(), and lumiera_configitem_delete().
Here is the call graph for this function:
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_new | ( | const char * | line | ) |
Definition at line 96 of file configitem.c.
References lumiera_configitem_init(), lumiera_configitem_move(), lumiera_configitem_parse(), and lumiera_malloc().
Referenced by lumiera_config_set(), lumiera_config_setdefault(), TEST(), TEST(), TEST(), and TEST().
Here is the call graph for this function:
Here is the caller graph for this function:| void lumiera_configitem_delete | ( | LumieraConfigitem | self, |
| LumieraConfigLookup | lookup | ||
| ) |
Definition at line 114 of file configitem.c.
References lumiera_configitem_destroy(), and lumiera_free().
Referenced by lumiera_configitem_destroy(), and TEST().
Here is the call graph for this function:
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_set_value | ( | LumieraConfigitem | self, |
| const char * | delim_value | ||
| ) |
Definition at line 122 of file configitem.c.
References lumiera_configitem_parse(), and lumiera_tmpbuf_snprintf().
Referenced by lumiera_config_set().
Here is the call graph for this function:
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_move | ( | LumieraConfigitem | self, |
| LumieraConfigitem | source | ||
| ) |
Definition at line 135 of file configitem.c.
References NULL.
Referenced by lumiera_configentry_new(), and lumiera_configitem_new().
Here is the caller graph for this function:| LumieraConfigitem lumiera_configitem_parse | ( | LumieraConfigitem | self, |
| const char * | line | ||
| ) |
Definition at line 165 of file configitem.c.
References lumiera_free(), lumiera_strndup(), parse_configentry(), parse_directive(), and parse_section().
Referenced by lumiera_configitem_new(), and lumiera_configitem_set_value().
Here is the call graph for this function:
Here is the caller graph for this function: