aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-03 01:01:50 +0200
committerMax Kellermann <max@duempel.org>2009-07-03 01:01:50 +0200
commita923080d9b0d4866025404bcaf97111707d6fe23 (patch)
tree1e437b90b521689fa000f5f6a2fb7606be5bed6f /src/conf.h
parent706614b0d77b665805f78da24681af13454de774 (diff)
downloadmpd-a923080d9b0d4866025404bcaf97111707d6fe23.tar.gz
mpd-a923080d9b0d4866025404bcaf97111707d6fe23.tar.xz
mpd-a923080d9b0d4866025404bcaf97111707d6fe23.zip
conf: added config_quark()
This GQuark will be used for GErrors related to malformed configuration.
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index 8891879e7..c1c0ab5d9 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -97,6 +97,16 @@ struct config_param {
bool used;
};
+/**
+ * A GQuark for GError instances, resulting from malformed
+ * configuration.
+ */
+static inline GQuark
+config_quark(void)
+{
+ return g_quark_from_static_string("config");
+}
+
void config_global_init(void);
void config_global_finish(void);