output: use bool for return values and flags

Don't return 0/-1 on success/error, but true/false.  Instead of int,
use bool for storing flags.
This commit is contained in:
Max Kellermann
2008-10-29 20:40:27 +01:00
parent 03390d8be1
commit 58c5bee9f0
21 changed files with 162 additions and 153 deletions

View File

@@ -45,7 +45,7 @@ struct audio_output_plugin {
* Test if this plugin can provide a default output, in case
* none has been configured. This method is optional.
*/
int (*test_default_device)(void);
bool (*test_default_device)(void);
/**
* Configure and initialize the device, but do not open it
@@ -73,12 +73,12 @@ struct audio_output_plugin {
* @param audio_format the audio format in which data is going
* to be delivered; may be modified by the plugin
*/
int (*open)(void *data, struct audio_format *audio_format);
bool (*open)(void *data, struct audio_format *audio_format);
/**
* Play a chunk of audio data.
*/
int (*play)(void *data, const char *playChunk, size_t size);
bool (*play)(void *data, const char *playChunk, size_t size);
/**
* Pause the device. If supported, it may perform a special