From 58c5bee9f0bcb46da7d113b66a4e1e2d7add9837 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Oct 2008 20:40:27 +0100 Subject: 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. --- src/output_control.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/output_control.h') diff --git a/src/output_control.h b/src/output_control.h index 275e58aa9..b2b9a6c64 100644 --- a/src/output_control.h +++ b/src/output_control.h @@ -22,6 +22,7 @@ #include "conf.h" #include +#include 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 -- cgit v1.2.3