aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-04 02:51:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-04 02:51:54 +0000
commit630d33b234dc116ca175c847abf4ca38e64d52fe (patch)
tree4929ccaf4efa5f1b82b13792d6cc3fe24420062b /src/command.h
parentf958e0a4c5bb7241b2ec443a402d10c29abfc08f (diff)
downloadmpd-630d33b234dc116ca175c847abf4ca38e64d52fe.tar.gz
mpd-630d33b234dc116ca175c847abf4ca38e64d52fe.tar.xz
mpd-630d33b234dc116ca175c847abf4ca38e64d52fe.zip
finish ack error codes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/command.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/command.h b/src/command.h
index 8e2b90711..08263ef97 100644
--- a/src/command.h
+++ b/src/command.h
@@ -23,6 +23,8 @@
#include "list.h"
#include "myfprintf.h"
+#include "log.h"
+#include "ack.h"
#include <stdio.h>
@@ -43,17 +45,18 @@ void finishCommands();
#define commandSuccess(fp) myfprintf(fp, "OK\n")
-#define commandError(fp, format, ... ) \
+#define commandError(fp, error, format, ... ) \
{\
if(current_command) { \
- myfprintf(fp, "ACK [%s:%i] " format "\n", \
+ myfprintf(fp, "ACK [%s:%i:%i] " format "\n", \
current_command, command_listNum, \
- ##__VA_ARGS__); \
+ (int)error, ##__VA_ARGS__); \
current_command = NULL; \
} \
else { \
- myfprintf(fp, "ACK [:%i] " format "\n", \
- command_listNum, ##__VA_ARGS__); \
+ myfprintf(fp, "ACK [:%i:%i] " format "\n", \
+ command_listNum, (int)error, \
+ ##__VA_ARGS__); \
} \
}