aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-04 00:49:33 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-04 00:49:33 +0000
commitef6c500edb7dc1a4eb9bff11b83b57dd60d37d4a (patch)
tree26e7b16fbeb8bef1b45a9a7a035d5a3309c0145a /src/command.h
parentdafe92a9edd35ef805963d30e953bcadd78074d3 (diff)
downloadmpd-ef6c500edb7dc1a4eb9bff11b83b57dd60d37d4a.tar.gz
mpd-ef6c500edb7dc1a4eb9bff11b83b57dd60d37d4a.tar.xz
mpd-ef6c500edb7dc1a4eb9bff11b83b57dd60d37d4a.zip
clean up ACK error coding a little bit
git-svn-id: https://svn.musicpd.org/mpd/trunk@1321 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/command.h b/src/command.h
index a2733ed6e..3aad04dca 100644
--- a/src/command.h
+++ b/src/command.h
@@ -22,15 +22,13 @@
#include "../config.h"
#include "list.h"
+#include "myfprintf.h"
#include <stdio.h>
#define COMMAND_RETURN_KILL 10
#define COMMAND_RETURN_CLOSE 20
-#define COMMAND_RESPOND_ERROR "ACK"
-#define COMMAND_RESPOND_OK "OK"
-
int proccessListOfCommands(FILE * fp, int * permission, int * expired,
List * list);
@@ -40,5 +38,8 @@ void initCommands();
void finishCommands();
+#define commandSuccess(fp) myfprintf(fp, "OK\n")
+
+#define commandError(fp, format, ... ) myfprintf(fp, "ACK " format "\n", ##__VA_ARGS__)
+
#endif
-/* vim:set shiftwidth=4 tabstop=8 expandtab: */