config

config

Functions

Types and Values

typedef Config

Description

Functions

ConfigForeachCallback ()

void
(*ConfigForeachCallback) (Config const *config,
                          String const *section,
                          void *priv);

ConfigForeachSectionCallback ()

void
(*ConfigForeachSectionCallback) (Config const *config,
                                 String const *section,
                                 String const *variable,
                                 String const *value,
                                 void *priv);

config_new ()

Config *
config_new (void);

config_new_copy ()

Config *
config_new_copy (Config const *from);

config_new_load ()

Config *
config_new_load (String const *filename);

config_delete ()

void
config_delete (Config *config);

config_get ()

String const *
config_get (Config const *config,
            String const *section,
            String const *variable);

config_set ()

int
config_set (Config *config,
            String const *section,
            String const *variable,
            String const *value);

config_foreach ()

void
config_foreach (Config const *config,
                ConfigForeachCallback callback,
                void *priv);

config_foreach_section ()

void
config_foreach_section (Config const *config,
                        String const *section,
                        ConfigForeachSectionCallback callback,
                        void *priv);

config_load ()

int
config_load (Config *config,
             String const *filename);

config_load_preferences ()

int
config_load_preferences (Config *config,
                         String const *vendor,
                         String const *package,
                         String const *filename);

config_load_preferences_system ()

int
config_load_preferences_system (Config *config,
                                String const *vendor,
                                String const *package,
                                String const *filename);

config_load_preferences_user ()

int
config_load_preferences_user (Config *config,
                              String const *vendor,
                              String const *package,
                              String const *filename);

config_reset ()

int
config_reset (Config *config);

config_save ()

int
config_save (Config const *config,
             String const *filename);

config_save_preferences_user ()

int
config_save_preferences_user (Config const *config,
                              String const *vendor,
                              String const *package,
                              String const *filename);

Types and Values

Config

typedef struct _Hash Config;