aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-24 07:25:07 +0200
committerMax Kellermann <max@duempel.org>2008-09-24 07:25:07 +0200
commit9a5b5998832f1f9f6efce99f4abdf00f5fe1dfbb (patch)
tree38c1c1cceff677e7fda2837bc537acfb711130d9 /src/output_internal.h
parent2b782b82eaadeff36fa230ce3ac30893eb6581e3 (diff)
downloadmpd-9a5b5998832f1f9f6efce99f4abdf00f5fe1dfbb.tar.gz
mpd-9a5b5998832f1f9f6efce99f4abdf00f5fe1dfbb.tar.xz
mpd-9a5b5998832f1f9f6efce99f4abdf00f5fe1dfbb.zip
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.
Diffstat (limited to 'src/output_internal.h')
-rw-r--r--src/output_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output_internal.h b/src/output_internal.h
index 2455a549a..bb5ee43f5 100644
--- a/src/output_internal.h
+++ b/src/output_internal.h
@@ -110,6 +110,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)
{
return ao->command == AO_COMMAND_NONE;