diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 18:09:39 +0100 |
commit | feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd (patch) | |
tree | 8127b30bc339eae03226f3e97ea8ac99f62587b3 /src/conf.h | |
parent | eb8922f3468fe664211911c49077a4e3442b7703 (diff) | |
download | mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.tar.gz mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.tar.xz mpd-feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd.zip |
ConfigFile, CommandLine: use the Path class
Diffstat (limited to '')
-rw-r--r-- | src/conf.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/conf.h b/src/conf.h index d20dc78bc..ca60591d6 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 */ |