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.
This commit is contained in:
Max Kellermann
2008-10-14 22:38:14 +02:00
parent 30c86d8ae6
commit a3e3d2c950
14 changed files with 305 additions and 3 deletions
+3
View File
@@ -21,6 +21,7 @@
#include "log.h"
#include "player_control.h"
#include "utils.h"
#include "idle.h"
#include "os_compat.h"
#include "../config.h"
@@ -490,6 +491,8 @@ static int changeSoftwareVolume(int change, int rel)
int changeVolumeLevel(int change, int rel)
{
idle_add(IDLE_MIXER);
switch (volume_mixerType) {
#ifdef HAVE_ALSA
case VOLUME_MIXER_TYPE_ALSA: