diff options
author | Max Kellermann <max@duempel.org> | 2008-10-14 22:38:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-14 22:38:14 +0200 |
commit | a3e3d2c9506d17b3e19e205535ec263ee75178c9 (patch) | |
tree | 3e93ea6ae33dba8a8f5e12e34629366dcdd7fdb7 /src/audio.c | |
parent | 30c86d8ae64ae46ba3bcb1c63e867789feab6dc4 (diff) | |
download | mpd-a3e3d2c9506d17b3e19e205535ec263ee75178c9.tar.gz mpd-a3e3d2c9506d17b3e19e205535ec263ee75178c9.tar.xz mpd-a3e3d2c9506d17b3e19e205535ec263ee75178c9.zip |
command: added command "idle"
"idle" waits until something noteworthy happens on the server,
e.g. song change, playlist modified, database updated. This allows
clients to keep up to date without polling.
Diffstat (limited to '')
-rw-r--r-- | src/audio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c index ce62df46d..4305235d0 100644 --- a/src/audio.c +++ b/src/audio.c @@ -24,6 +24,7 @@ #include "log.h" #include "path.h" #include "client.h" +#include "idle.h" #include "utils.h" #include "os_compat.h" @@ -379,6 +380,7 @@ int enableAudioDevice(unsigned int device) return -1; audioDeviceStates[device] = true; + idle_add(IDLE_OUTPUT); return 0; } @@ -389,6 +391,7 @@ int disableAudioDevice(unsigned int device) return -1; audioDeviceStates[device] = false; + idle_add(IDLE_OUTPUT); return 0; } |