2012-02-28 13:09:12 +01:00
|
|
|
/*! \file config.h
|
|
|
|
* \brief Configuration manager headers.
|
|
|
|
*/
|
|
|
|
|
2012-02-28 23:16:55 +01:00
|
|
|
/*! \brief Reads config from file into memory. */
|
2012-02-24 13:03:30 +01:00
|
|
|
void InitConfig();
|
2012-02-28 23:16:55 +01:00
|
|
|
/*! \brief Returns value of requested config entry. */
|
2012-02-26 00:47:41 +01:00
|
|
|
char* GetConfigOption(char* section, char* name);
|
2012-02-28 23:16:55 +01:00
|
|
|
/*! \brief Returns value of requested config entry, or def if no such entry exists. */
|
2012-02-26 00:47:41 +01:00
|
|
|
char* GetConfigOptionDefault(char* section, char* name, char* def);
|
2012-02-28 23:16:55 +01:00
|
|
|
/*! \brief Sets new value of requested config entry, or created new if no such entry exists. */
|
2012-02-26 00:47:41 +01:00
|
|
|
void SetConfigOption(char* section, char* name, char* value);
|
2012-02-28 23:16:55 +01:00
|
|
|
/*! \brief Writes config from memory to file. */
|
2012-02-24 13:03:30 +01:00
|
|
|
void DeinitConfig();
|