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
+5 -2
View File
@@ -22,6 +22,7 @@
#include "conf.h"
#include <stddef.h>
#include <stdbool.h>
struct audio_output;
struct audio_output_plugin;
@@ -29,8 +30,10 @@ struct audio_format;
struct tag;
int audio_output_init(struct audio_output *, ConfigParam * param);
int audio_output_open(struct audio_output *audioOutput,
const struct audio_format *audioFormat);
bool
audio_output_open(struct audio_output *audioOutput,
const struct audio_format *audioFormat);
/**
* Wakes up the audio output thread. This is part of a workaround for