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

bool mpd_run_add ( struct mpd_connection connection,
const char *  uri 
)

Shortcut for mpd_send_add() and mpd_response_finish().

Parameters:
connection the connection to MPD
uri the URI of the song to be added
Returns:
true on success, false on error

Definition at line 160 of file queue.c.

References mpd_response_finish(), mpd_run_add(), and mpd_send_add().

Referenced by mpd_run_add().

{
      return mpd_run_check(connection) &&
            mpd_send_add(connection, uri) &&
            mpd_response_finish(connection);
}


Generated by  Doxygen 1.6.0   Back to index