libSystem Reference Manual: Config

## Config Config |

## Functions

void | (*ConfigForeachCallback) ()
void | (*ConfigForeachSectionCallback) ()
Config * | config_new ()
void | config_delete ()
String const * | config_get ()
int | config_set ()
void | config_foreach ()
void | config_foreach_section ()
int | config_load ()
int | config_reset ()
int | config_save ()

## Types and Values

typedef | Config

## Description

## Functions

### ConfigForeachCallback ()

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

### ConfigForeachSectionCallback ()

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

### config_new ()

    Config *
    config_new (void);

#### Returns

### config_delete ()

    void
    config_delete (Config *config);

### config_get ()

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

#### Returns

### config_set ()

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

#### Returns

### config_foreach ()

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

### config_foreach_section ()

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

### config_load ()

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

#### Returns

### config_reset ()

    int
    config_reset (Config *config);

#### Returns

### config_save ()

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

#### Returns

## Types and Values

### Config

    typedef struct _Hash Config;