aboutsummaryrefslogtreecommitdiff
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-29 17:23:35 +0100
committerMax Kellermann <max@duempel.org>2013-01-29 18:09:39 +0100
commitfeb8d5b82f3e7c67806d5efbef1e0b86170ec6dd (patch)
tree8127b30bc339eae03226f3e97ea8ac99f62587b3 /src/conf.h
parenteb8922f3468fe664211911c49077a4e3442b7703 (diff)
ConfigFile, CommandLine: use the Path class
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/conf.h b/src/conf.h
index d20dc78b..ca60591d 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -81,6 +81,10 @@
#define MAX_FILTER_CHAIN_LENGTH 255
+#ifdef __cplusplus
+class Path;
+#endif
+
struct block_param {
char *name;
char *value;
@@ -118,8 +122,6 @@ config_quark(void)
return g_quark_from_static_string("config");
}
-G_BEGIN_DECLS
-
void config_global_init(void);
void config_global_finish(void);
@@ -129,8 +131,14 @@ void config_global_finish(void);
*/
void config_global_check(void);
+#ifdef __cplusplus
+
bool
-config_read_file(const char *file, GError **error_r);
+ReadConfigFile(const Path &path, GError **error_r);
+
+#endif
+
+G_BEGIN_DECLS
/* don't free the returned value
set _last_ to NULL to get first entry */