From b084bc28ede5d397e88a4e2bdad8c07a55069589 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:03:39 +0200 Subject: use the "bool" data type instead of "int" "bool" should be used in C99 programs for boolean values. --- src/decoder_api.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/decoder_api.h') diff --git a/src/decoder_api.h b/src/decoder_api.h index d5e76f61..d0985f12 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -33,6 +33,7 @@ #include "audio_format.h" #include "playerData.h" +#include /* 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 -- cgit v1.2.3