aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
commitb084bc28ede5d397e88a4e2bdad8c07a55069589 (patch)
treed61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/decoder_api.h
parent71351160b1b6fd4203f27f9159ae39a476483e1a (diff)
downloadmpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.gz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.xz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.zip
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to '')
-rw-r--r--src/decoder_api.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index d5e76f610..d0985f123 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -33,6 +33,7 @@
#include "audio_format.h"
#include "playerData.h"
+#include <stdbool.h>
/* valid values for streamTypes in the InputPlugin struct: */
#define INPUT_PLUGIN_STREAM_FILE 0x01
@@ -65,10 +66,10 @@ struct decoder_plugin {
void (*finish)(void);
/**
- * boolean return value, returns 1 if the InputStream is
- * decodable by the InputPlugin, 0 if not
+ * returns true if the InputStream is decodable by the
+ * InputPlugin, false if not
*/
- unsigned int (*try_decode)(InputStream *);
+ bool (*try_decode)(InputStream *);
/**
* this will be used to decode InputStreams, and is