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

enum mpd_idle mpd_run_noidle ( struct mpd_connection connection  ) 

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

Parameters:
connection the connection to MPD
Returns:
the event bit mask, or 0 on error or if there were no events

Definition at line 215 of file idle.c.

References mpd_recv_idle(), mpd_response_finish(), mpd_run_noidle(), and mpd_send_noidle().

Referenced by mpd_run_noidle().

{
      enum mpd_idle flags;

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

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

      return flags;
}


Generated by  Doxygen 1.6.0   Back to index