From b95ed984f8bd2fe413d53d4b8677fe3d04bc1ad9 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 28 Jan 2014 00:08:33 +0100 Subject: implement server configuration loading/saving --- bouncer/ini.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bouncer/ini.h (limited to 'bouncer/ini.h') 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 +#include +#include + +namespace INI { + struct Section { + std::string title; + std::map data; + }; + + std::list
load(const char *path); + bool save(const char *path, const std::list
§ions); +} + +#endif /* INI_H */ -- cgit v1.2.3