all repos — mgba @ 11bf4fdfdad16a2a3b8059d652f41c2c6b2e2581

mGBA Game Boy Advance Emulator

src/util/configuration.h (view raw)

 1#ifndef CONFIGURATION_H
 2#define CONFIGURATION_H
 3
 4#include "util/table.h"
 5
 6struct VFile;
 7
 8struct Configuration {
 9	struct Table sections;
10	struct Table root;
11};
12
13void ConfigurationInit(struct Configuration*);
14void ConfigurationDeinit(struct Configuration*);
15
16void ConfigurationSetValue(struct Configuration*, const char* section, const char* key, const char* value);
17const char* ConfigurationGetValue(const struct Configuration*, const char* section, const char* key);
18
19bool ConfigurationRead(struct Configuration*, const char* path);
20bool ConfigurationWrite(const struct Configuration*, const char* path);
21bool ConfigurationWriteSection(const struct Configuration*, const char* path, const char* section);
22
23#endif