summaryrefslogtreecommitdiff
path: root/bouncer/ini.h
diff options
context:
space:
mode:
Diffstat (limited to 'bouncer/ini.h')
-rw-r--r--bouncer/ini.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bouncer/ini.h b/bouncer/ini.h
new file mode 100644
index 0000000..72a0e29
--- /dev/null
+++ b/bouncer/ini.h
@@ -0,0 +1,18 @@
+#ifndef INI_H
+#define INI_H
+
+#include <string>
+#include <list>
+#include <map>
+
+namespace INI {
+ struct Section {
+ std::string title;
+ std::map<std::string, std::string> data;
+ };
+
+ std::list<Section> load(const char *path);
+ bool save(const char *path, const std::list<Section> &sections);
+}
+
+#endif /* INI_H */