use the "bool" data type instead of "int"

"bool" should be used in C99 programs for boolean values.
This commit is contained in:
Max Kellermann
2008-10-08 11:03:39 +02:00
parent 71351160b1
commit b084bc28ed
20 changed files with 74 additions and 65 deletions

View File

@@ -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