diff options
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 |