diff options
author | Max Kellermann <max@duempel.org> | 2012-03-06 22:08:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-06 22:08:54 +0100 |
commit | e9f1b53ae6819170ea06f4347a2c5c631044c1f3 (patch) | |
tree | 78bd59ae101103aed5b4ab6840fa128272cd8b44 /src/ack.h | |
parent | 5016839b90274017696e0942f424d4f361d39ea2 (diff) |
command, ack: add ack_quark()
To pass ack values around.
Diffstat (limited to 'src/ack.h')
-rw-r--r-- | src/ack.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |