aboutsummaryrefslogtreecommitdiffstats
path: root/src/ack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ack.h')
-rw-r--r--src/ack.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ack.h b/src/ack.h
index af3d1be9a..440bc27d8 100644
--- a/src/ack.h
+++ b/src/ack.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2010 The Music Player Daemon Project
+ * Copyright (C) 2003-2011 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -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