clean up ACK error coding a little bit
git-svn-id: https://svn.musicpd.org/mpd/trunk@1321 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -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: */
|
||||
|
Reference in New Issue
Block a user