output: removed DEVICE_ON, DEVICE_OFF

To check whether a device is really on or off, we should rather check
audio_output.open, instead of managing another variable.  Wrap
audio_output.open in the inline function audio_output_is_open() and
use it instead of DEVICE_ON and DEVICE_OFF.
This commit is contained in:
Max Kellermann
2008-09-24 07:25:07 +02:00
parent 2b782b82ea
commit 9a5b599883
2 changed files with 20 additions and 29 deletions
+6
View File
@@ -109,6 +109,12 @@ struct audio_output {
*/
extern struct notify audio_output_client_notify;
static inline int
audio_output_is_open(const struct audio_output *ao)
{
return ao->open;
}
static inline int
audio_output_command_is_finished(const struct audio_output *ao)
{