summaryrefslogtreecommitdiff
path: root/bouncer/ini.h
blob: 72a0e292b07f47b0ac33363c7308bd10762f617e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 */