aboutsummaryrefslogtreecommitdiffstats
path: root/src/ack.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ack.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ack.h b/src/ack.h
index f86b605f7..440bc27d8 100644
--- a/src/ack.h
+++ b/src/ack.h
@@ -20,6 +20,8 @@
#ifndef MPD_ACK_H
#define MPD_ACK_H
+#include <glib.h>
+
enum ack {
ACK_ERROR_NOT_LIST = 1,
ACK_ERROR_ARG = 2,
@@ -36,4 +38,14 @@ enum ack {
ACK_ERROR_EXIST = 56,
};
+/**
+ * Quark for GError.domain; the code is an enum #ack.
+ */
+G_GNUC_CONST
+static inline GQuark
+ack_quark(void)
+{
+ return g_quark_from_static_string("ack");
+}
+
#endif