Lumiera  0.pre.03
»edit your freedom«
configitem.c File Reference

Go to the source code of this file.

Description

Implementation draft for a configuration system (2008).

Create a configitem from a single line of the config file.

Todo:
as of 2016 this code is unused and likely to be replaced by a different approach.

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

void lumiera_configitem_delete (LumieraConfigitem self, LumieraConfigLookup lookup)
 
LumieraConfigitem lumiera_configitem_destroy (LumieraConfigitem self, LumieraConfigLookup lookup)
 
LumieraConfigitem lumiera_configitem_init (LumieraConfigitem self)
 
LumieraConfigitem lumiera_configitem_move (LumieraConfigitem self, LumieraConfigitem source)
 
LumieraConfigitem lumiera_configitem_new (const char *line)
 
LumieraConfigitem lumiera_configitem_parse (LumieraConfigitem self, const char *line)
 
LumieraConfigitem lumiera_configitem_set_value (LumieraConfigitem self, const char *delim_value)
 
static LumieraConfigitem parse_configentry (LumieraConfigitem self, char *itr)
 
static LumieraConfigitem parse_directive (LumieraConfigitem self, char *itr)
 
static LumieraConfigitem parse_section (LumieraConfigitem self, char *itr)