Main Page   Modules   Compound List   File List   Compound Members   File Members  

xlv_config.h File Reference

#include <glib.h>
#include <stdio.h>

Go to the source code of this file.

Compounds

struct  _XLV_Config
 XLV_Config descriptor. More...

struct  _XLV_ConfigKey
 XLV_ConfigKey descriptor. More...

struct  _XLV_ConfigOptions
struct  _XLV_ConfigOptions_Key
struct  _XLV_ConfigOptions_Section
struct  _XLV_ConfigSection
 XLV_ConfigSection descriptor. More...


Defines

#define XLV_CONFIG_HOME_DIR   ".xlv"
#define XLV_CONFIG_ETC_DIR   "xlv"
#define XLV_CONFIG_KEY_STRING   0
#define XLV_CONFIG_KEY_INT   1
#define XLV_CONFIG_KEY_FLOAT   2
#define XLV_CONFIG_KEY_UNDEF   3

Typedefs

typedef _XLV_ConfigSection XLV_ConfigSection
 XLV_ConfigSection class.

typedef _XLV_ConfigKey XLV_ConfigKey
 XLV_ConfigKey class.

typedef _XLV_Config XLV_Config
 XLV_Config class.

typedef _XLV_ConfigOptions XLV_ConfigOptions
 XLV_ConfigOptions class.

typedef _XLV_ConfigOptions_Section XLV_ConfigOptions_Section
 XLV_ConfigOptions_Section class.

typedef _XLV_ConfigOptions_Key XLV_ConfigOptions_Key
 XLV_ConfigOptions_Key class.


Functions

gchar * xlv_config_check_file (const gchar *filename, gboolean force_local)
 Build a path to the good config file. More...

XLV_Configxlv_config_file_new (const gchar *filename)
 Build a new XLV_Config object from a file. More...

void xlv_config_release (XLV_Config *config, gboolean flush)
 XLV Config destructor. More...

XLV_ConfigSectionxlv_config_get_section (XLV_Config *config, const guint8 *section_name)
 Return the section associated to section_name. More...

XLV_ConfigKeyxlv_config_get_key (XLV_ConfigSection *section, const guint8 *section_key)
 Return the key associated to section_key. More...

XLV_ConfigSectionxlv_config_next_section (XLV_Config *config, XLV_ConfigSection *section)
 Return the next section available in the configfile. More...

XLV_ConfigKeyxlv_config_next_key (XLV_ConfigSection *section, XLV_ConfigKey *key)
 Return the next key available in the section. More...

void xlv_config_get_options (XLV_Config *config, XLV_ConfigOptions *options)
 Quick way to parse a config file. More...


Detailed Description

Author:
Guilhem Lavaux

Generated on Mon Jul 1 19:39:07 2002 for XLV by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002