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

Go to the source code of this file.

Description

A public interface to a (planned) global configuration system.

This is part of a drafted configuration system (2008).

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

Definition in file config-interface.c.

Functions

void lumiera_config_interface_destroy (void)
 
void lumiera_config_interface_init (void)
 
 LUMIERA_EXPORT (LUMIERA_INTERFACE_DEFINE(lumieraorg_configuration, 0, lumieraorg_configuration, NULL, NULL, NULL, LUMIERA_INTERFACE_MAP(load, lumiera_config_load), LUMIERA_INTERFACE_MAP(save, lumiera_config_save), LUMIERA_INTERFACE_MAP(purge, lumiera_config_purge), LUMIERA_INTERFACE_MAP(dump, lumiera_config_dump), LUMIERA_INTERFACE_INLINE(setdefault, int,(const char *line),{return!!lumiera_config_setdefault(line);}), LUMIERA_INTERFACE_MAP(reset, lumiera_config_reset), LUMIERA_INTERFACE_MAP(info, lumiera_config_info), LUMIERA_INTERFACE_MAP(wordlist_get_nth, lumiera_config_wordlist_get_nth), LUMIERA_INTERFACE_MAP(wordlist_find, lumiera_config_wordlist_find), LUMIERA_INTERFACE_INLINE(wordlist_replace, int,(const char *key, const char *value, const char *subst1, const char *subst2, const char *delims),{return!!lumiera_config_wordlist_replace(key, value, subst1, subst2, delims);}), LUMIERA_INTERFACE_INLINE(wordlist_add, int,(const char *key, const char *value, const char *delims),{return!!lumiera_config_wordlist_add(key, value, delims);}), LUMIERA_INTERFACE_INLINE(link_get, int,(const char *key, const char **value),{return!!lumiera_config_link_get(key, value);}), LUMIERA_INTERFACE_INLINE(link_set, int,(const char *key, const char **value),{return!!lumiera_config_link_set(key, value);}), LUMIERA_INTERFACE_INLINE(number_get, int,(const char *key, long long *value),{return!!lumiera_config_number_get(key, value);}), LUMIERA_INTERFACE_INLINE(number_set, int,(const char *key, long long *value),{return!!lumiera_config_number_set(key, value);}), LUMIERA_INTERFACE_INLINE(real_get, int,(const char *key, long double *value),{return!!lumiera_config_real_get(key, value);}), LUMIERA_INTERFACE_INLINE(real_set, int,(const char *key, long double *value),{return!!lumiera_config_real_set(key, value);}), LUMIERA_INTERFACE_INLINE(string_get, int,(const char *key, const char **value),{return!!lumiera_config_string_get(key, value);}), LUMIERA_INTERFACE_INLINE(string_set, int,(const char *key, const char **value),{return!!lumiera_config_string_set(key, value);}), LUMIERA_INTERFACE_INLINE(wordlist_get, int,(const char *key, const char **value),{return!!lumiera_config_wordlist_get(key, value);}), LUMIERA_INTERFACE_INLINE(wordlist_set, int,(const char *key, const char **value),{return!!lumiera_config_wordlist_set(key, value);}), LUMIERA_INTERFACE_INLINE(word_get, int,(const char *key, const char **value),{return!!lumiera_config_word_get(key, value);}), LUMIERA_INTERFACE_INLINE(word_set, int,(const char *key, const char **value),{return!!lumiera_config_word_set(key, value);}), LUMIERA_INTERFACE_INLINE(bool_get, int,(const char *key, int *value),{return!!lumiera_config_bool_get(key, value);}), LUMIERA_INTERFACE_INLINE(bool_set, int,(const char *key, int *value),{return!!lumiera_config_bool_set(key, value);}),))
 

Function Documentation

LUMIERA_EXPORT ( LUMIERA_INTERFACE_DEFINE(lumieraorg_configuration, 0, lumieraorg_configuration, NULL, NULL, NULL, LUMIERA_INTERFACE_MAP(load, lumiera_config_load), LUMIERA_INTERFACE_MAP(save, lumiera_config_save), LUMIERA_INTERFACE_MAP(purge, lumiera_config_purge), LUMIERA_INTERFACE_MAP(dump, lumiera_config_dump), LUMIERA_INTERFACE_INLINE(setdefault, int,(const char *line),{return!!lumiera_config_setdefault(line);}), LUMIERA_INTERFACE_MAP(reset, lumiera_config_reset), LUMIERA_INTERFACE_MAP(info, lumiera_config_info), LUMIERA_INTERFACE_MAP(wordlist_get_nth, lumiera_config_wordlist_get_nth), LUMIERA_INTERFACE_MAP(wordlist_find, lumiera_config_wordlist_find), LUMIERA_INTERFACE_INLINE(wordlist_replace, int,(const char *key, const char *value, const char *subst1, const char *subst2, const char *delims),{return!!lumiera_config_wordlist_replace(key, value, subst1, subst2, delims);}), LUMIERA_INTERFACE_INLINE(wordlist_add, int,(const char *key, const char *value, const char *delims),{return!!lumiera_config_wordlist_add(key, value, delims);}), LUMIERA_INTERFACE_INLINE(link_get, int,(const char *key, const char **value),{return!!lumiera_config_link_get(key, value);}), LUMIERA_INTERFACE_INLINE(link_set, int,(const char *key, const char **value),{return!!lumiera_config_link_set(key, value);}), LUMIERA_INTERFACE_INLINE(number_get, int,(const char *key, long long *value),{return!!lumiera_config_number_get(key, value);}), LUMIERA_INTERFACE_INLINE(number_set, int,(const char *key, long long *value),{return!!lumiera_config_number_set(key, value);}), LUMIERA_INTERFACE_INLINE(real_get, int,(const char *key, long double *value),{return!!lumiera_config_real_get(key, value);}), LUMIERA_INTERFACE_INLINE(real_set, int,(const char *key, long double *value),{return!!lumiera_config_real_set(key, value);}), LUMIERA_INTERFACE_INLINE(string_get, int,(const char *key, const char **value),{return!!lumiera_config_string_get(key, value);}), LUMIERA_INTERFACE_INLINE(string_set, int,(const char *key, const char **value),{return!!lumiera_config_string_set(key, value);}), LUMIERA_INTERFACE_INLINE(wordlist_get, int,(const char *key, const char **value),{return!!lumiera_config_wordlist_get(key, value);}), LUMIERA_INTERFACE_INLINE(wordlist_set, int,(const char *key, const char **value),{return!!lumiera_config_wordlist_set(key, value);}), LUMIERA_INTERFACE_INLINE(word_get, int,(const char *key, const char **value),{return!!lumiera_config_word_get(key, value);}), LUMIERA_INTERFACE_INLINE(word_set, int,(const char *key, const char **value),{return!!lumiera_config_word_set(key, value);}), LUMIERA_INTERFACE_INLINE(bool_get, int,(const char *key, int *value),{return!!lumiera_config_bool_get(key, value);}), LUMIERA_INTERFACE_INLINE(bool_set, int,(const char *key, int *value),{return!!lumiera_config_bool_set(key, value);}),)  )
void lumiera_config_interface_init ( void  )

Definition at line 147 of file config-interface.c.

References LUMIERA_INTERFACE_REGISTEREXPORTED.

Referenced by AppState::init(), and TEST().

+ Here is the caller graph for this function:

void lumiera_config_interface_destroy ( void  )

Definition at line 153 of file config-interface.c.

References LUMIERA_INTERFACE_UNREGISTEREXPORTED.

Referenced by TEST(), and AppState::~AppState().

+ Here is the caller graph for this function: