Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

enum mpd_idle mpd_run_idle ( struct mpd_connection connection  ) 

Shortcut for mpd_send_idle() and mpd_recv_idle(). During mpd_recv_idle(), the configured timeout is disabled.

connection the connection to MPD
the event bit mask, or 0 on error

Definition at line 184 of file idle.c.

References mpd_recv_idle(), mpd_response_finish(), mpd_run_idle(), and mpd_send_idle().

Referenced by mpd_run_idle().

      enum mpd_idle flags;

      if (!mpd_run_check(connection) || !mpd_send_idle(connection))
            return 0;

      flags = mpd_recv_idle(connection, true);
      if (!mpd_response_finish(connection))
            return 0;

      return flags;

Generated by  Doxygen 1.6.0   Back to index