mirror of https://github.com/mgba-emu/mgba.git
24 lines
713 B
C
24 lines
713 B
C
|
#ifndef CONFIGURATION_H
|
||
|
#define CONFIGURATION_H
|
||
|
|
||
|
#include "util/table.h"
|
||
|
|
||
|
struct VFile;
|
||
|
|
||
|
struct Configuration {
|
||
|
struct Table sections;
|
||
|
struct Table root;
|
||
|
};
|
||
|
|
||
|
void ConfigurationInit(struct Configuration*);
|
||
|
void ConfigurationDeinit(struct Configuration*);
|
||
|
|
||
|
void ConfigurationSetValue(struct Configuration*, const char* section, const char* key, const char* value);
|
||
|
const char* ConfigurationGetValue(const struct Configuration*, const char* section, const char* key);
|
||
|
|
||
|
bool ConfigurationRead(struct Configuration*, const char* path);
|
||
|
bool ConfigurationWrite(const struct Configuration*, const char* path);
|
||
|
bool ConfigurationWriteSection(const struct Configuration*, const char* path, const char* section);
|
||
|
|
||
|
#endif
|