aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ack.h16
-rw-r--r--src/command.h4
2 files changed, 18 insertions, 2 deletions
diff --git a/src/ack.h b/src/ack.h
new file mode 100644
index 000000000..839452e90
--- /dev/null
+++ b/src/ack.h
@@ -0,0 +1,16 @@
+#ifndef ACK_H
+#define ACK_H
+
+#define ACK_ERROR_NOT_LIST 1
+#define ACK_ERROR_ARG 2
+#define ACK_ERROR_PASSWORD 3
+#define ACK_ERROR_PERMISSION 4
+#define ACK_ERROR_UNKNOWN 5
+#define ACK_ERROR_NO_EXIST 6
+#define ACK_ERROR_PLAYLIST_MAX 7
+#define ACK_ERROR_SYSTEM 8
+#define ACK_ERROR_PLAYLIST_LOAD 9
+#define ACK_ERROR_UPDATE_ALREADY 10
+#define ACK_ERROR_PLAYER_SYNC 11
+
+#endif
diff --git a/src/command.h b/src/command.h
index 2630623e2..85a3683a4 100644
--- a/src/command.h
+++ b/src/command.h
@@ -48,13 +48,13 @@ void finishCommands();
#define commandError(fp, error, format, ... ) \
{\
if(current_command) { \
- myfprintf(fp, "ACK [%i@%i:%s] " format "\n", \
+ myfprintf(fp, "ACK [%i@%i] {%s} " format "\n", \
(int)error, command_listNum, \
current_command, ##__VA_ARGS__); \
current_command = NULL; \
} \
else { \
- myfprintf(fp, "ACK [%i@%i:] " format "\n", \
+ myfprintf(fp, "ACK [%i@%i] " format "\n", \
(int)error, command_listNum, \
##__VA_ARGS__); \
} \