summaryrefslogtreecommitdiff
path: root/bouncer/ini.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-28 00:08:33 +0100
committerTreeki <treeki@gmail.com>2014-01-28 00:08:33 +0100
commitb95ed984f8bd2fe413d53d4b8677fe3d04bc1ad9 (patch)
tree5da2f4d891215fb709f7165644fd4a0c92f1aefd /bouncer/ini.h
parent277c08cbc35f4cb2b72f1b00ab3e5f8efd2f8fb2 (diff)
downloadbounce4-b95ed984f8bd2fe413d53d4b8677fe3d04bc1ad9.tar.gz
bounce4-b95ed984f8bd2fe413d53d4b8677fe3d04bc1ad9.zip
implement server configuration loading/saving
Diffstat (limited to '')
-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 */