Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
config-typed.c File Reference

Go to the source code of this file.

#include "include/logging.h"
#include "lib/tmpbuf.h"
#include "common/config.h"
#include <stdint.h>

Functions

const char * lumiera_config_bool_get (const char *key, int *value)
 Bool Bool in various formats, (0,1(!1), yes/no, true/false, on/off, set/clear) More...
 
LumieraConfigitem lumiera_config_bool_set (const char *key, int *value)
 
const char * lumiera_config_link_get (const char *key, const char **value)
 
LumieraConfigitem lumiera_config_link_set (const char *key, const char **value)
 
const char * lumiera_config_number_get (const char *key, long long *value)
 Number signed integer numbers, in different formats (decimal, hex, oct, binary(for masks)) More...
 
LumieraConfigitem lumiera_config_number_set (const char *key, long long *value)
 
const char * lumiera_config_real_get (const char *key, long double *value)
 Real floating point number in standard formats (see printf/scanf) More...
 
LumieraConfigitem lumiera_config_real_set (const char *key, long double *value)
 
const char * lumiera_config_string_get (const char *key, const char **value)
 
LumieraConfigitem lumiera_config_string_set (const char *key, const char **value)
 
const char * lumiera_config_word_get (const char *key, const char **value)
 
LumieraConfigitem lumiera_config_word_set (const char *key, const char **value)
 
const char * lumiera_config_wordlist_get (const char *key, const char **value)
 Wordlist words delimited by any of " \t,;". More...
 
LumieraConfigitem lumiera_config_wordlist_set (const char *key, const char **value)
 
static char * scan_string (const char *in)
 String unquoted string which covers the whole value area and gets chopped or quoted string which preserves leading/trailing spaces either single or double quotes are allowed, doubling the quote in a string escapes it. More...
 
static char * scan_word (const char *in)
 helper function, takes a raw input string and give a tmpbuf with the word parsed back. More...
 

Variables

LumieraConfig lumiera_global_config
 

Function Documentation

const char* lumiera_config_link_get ( const char *  key,
const char **  value 
)

Definition at line 46 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

LumieraConfigitem lumiera_config_link_set ( const char *  key,
const char **  value 
)

Definition at line 55 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

const char* lumiera_config_number_get ( const char *  key,
long long *  value 
)

Number signed integer numbers, in different formats (decimal, hex, oct, binary(for masks))

Definition at line 69 of file config-typed.c.

References lumiera_config_get(), LUMIERA_ERROR_SET, LUMIERA_ERROR_SET_WARNING, lumiera_global_config, LUMIERA_MUTEX_SECTION, lumiera_tmpbuf_snprintf(), NULL, and TRACE().

Referenced by lumiera_backend_init(), lumiera_mmap_init(), and TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LumieraConfigitem lumiera_config_number_set ( const char *  key,
long long *  value 
)

Definition at line 97 of file config-typed.c.

References lumiera_config_set(), lumiera_global_config, LUMIERA_MUTEX_SECTION, lumiera_tmpbuf_snprintf(), NULL, and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* lumiera_config_real_get ( const char *  key,
long double *  value 
)

Real floating point number in standard formats (see printf/scanf)

Definition at line 118 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

LumieraConfigitem lumiera_config_real_set ( const char *  key,
long double *  value 
)

Definition at line 127 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

static char* scan_string ( const char *  in)
static

String unquoted string which covers the whole value area and gets chopped or quoted string which preserves leading/trailing spaces either single or double quotes are allowed, doubling the quote in a string escapes it.

helper function, takes a raw input string and give a tmpbuf with the string parsed back.

Definition at line 149 of file config-typed.c.

References LUMIERA_ERROR_SET, lumiera_tmpbuf_strndup(), and NULL.

Referenced by lumiera_config_string_get().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* lumiera_config_string_get ( const char *  key,
const char **  value 
)

Definition at line 200 of file config-typed.c.

References lumiera_config_get(), LUMIERA_ERROR_SET_WARNING, lumiera_global_config, LUMIERA_MUTEX_SECTION, NULL, scan_string(), and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LumieraConfigitem lumiera_config_string_set ( const char *  key,
const char **  value 
)

Definition at line 223 of file config-typed.c.

References lumiera_config_set(), lumiera_global_config, LUMIERA_MUTEX_SECTION, lumiera_tmpbuf_snprintf(), NULL, and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* lumiera_config_wordlist_get ( const char *  key,
const char **  value 
)

Wordlist words delimited by any of " \t,;".

Definition at line 245 of file config-typed.c.

References lumiera_config_get(), LUMIERA_ERROR_SET_WARNING, lumiera_global_config, LUMIERA_MUTEX_SECTION, NULL, and TRACE().

Referenced by lumiera_config_wordlist_find(), and lumiera_config_wordlist_get_nth().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LumieraConfigitem lumiera_config_wordlist_set ( const char *  key,
const char **  value 
)

Definition at line 271 of file config-typed.c.

References lumiera_config_set(), lumiera_global_config, LUMIERA_MUTEX_SECTION, lumiera_tmpbuf_snprintf(), NULL, and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* scan_word ( const char *  in)
static

helper function, takes a raw input string and give a tmpbuf with the word parsed back.

Remarks
'Word' is a single word, no quotes, chopped

Definition at line 293 of file config-typed.c.

References lumiera_tmpbuf_strndup().

Referenced by lumiera_config_word_get(), and lumiera_config_word_set().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* lumiera_config_word_get ( const char *  key,
const char **  value 
)

Definition at line 311 of file config-typed.c.

References lumiera_config_get(), LUMIERA_ERROR_SET_WARNING, lumiera_global_config, LUMIERA_MUTEX_SECTION, NULL, scan_word(), and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LumieraConfigitem lumiera_config_word_set ( const char *  key,
const char **  value 
)

Definition at line 334 of file config-typed.c.

References lumiera_config_set(), lumiera_global_config, LUMIERA_MUTEX_SECTION, lumiera_tmpbuf_snprintf(), NULL, scan_word(), and TRACE().

Referenced by TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* lumiera_config_bool_get ( const char *  key,
int *  value 
)

Bool Bool in various formats, (0,1(!1), yes/no, true/false, on/off, set/clear)

Definition at line 355 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

LumieraConfigitem lumiera_config_bool_set ( const char *  key,
int *  value 
)

Definition at line 365 of file config-typed.c.

References TRACE().

+ Here is the call graph for this function:

Variable Documentation