aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 21:41:54 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 21:41:54 +0200
commit890b0673469c79e3cc076b06a775d1d3f93d594d (patch)
tree2bdc8751eb4aa0bf67cf186f6a497437e50cc593 /src/command.h
parentd4f3c09081179cbe2b55a52549318949c5ede9e5 (diff)
downloadmpd-890b0673469c79e3cc076b06a775d1d3f93d594d.tar.gz
mpd-890b0673469c79e3cc076b06a775d1d3f93d594d.tar.xz
mpd-890b0673469c79e3cc076b06a775d1d3f93d594d.zip
command: use the bool datatype instead of int
Instead of returning 0 for success and -1 for failure, return true or false. This seems more natural.
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.h b/src/command.h
index 441b1685d..763487c12 100644
--- a/src/command.h
+++ b/src/command.h
@@ -23,6 +23,8 @@
#include "sllist.h"
#include "ack.h"
+#include <stdbool.h>
+
enum command_return {
COMMAND_RETURN_ERROR = -1,
COMMAND_RETURN_OK = 0,
@@ -38,7 +40,7 @@ void command_finish(void);
enum command_return
command_process_list(struct client *client,
- int list_ok, struct strnode *list);
+ bool list_ok, struct strnode *list);
enum command_return
command_process(struct client *client, char *commandString);