command, ack: add ack_quark()

To pass ack values around.
This commit is contained in:
Max Kellermann
2012-03-06 22:08:54 +01:00
parent 5016839b90
commit e9f1b53ae6
2 changed files with 16 additions and 0 deletions

View File

@@ -183,6 +183,10 @@ print_error(struct client *client, GError *error)
enum playlist_result result = error->code;
g_error_free(error);
return print_playlist_result(client, result);
} else if (error->domain == ack_quark()) {
command_error(client, error->code, "%s", error->message);
g_error_free(error);
return COMMAND_RETURN_ERROR;
} else if (error->domain == db_quark()) {
switch ((enum db_error)error->code) {
case DB_DISABLED: