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

bool mpd_run_delete ( struct mpd_connection connection,
unsigned  pos 
)

Shortcut for mpd_send_delete() and mpd_response_finish().

Parameters:
connection the connection to MPD
pos the position of the song to be deleted
Returns:
true on success, false on error

Definition at line 237 of file queue.c.

References mpd_response_finish(), mpd_run_delete(), and mpd_send_delete().

Referenced by mpd_run_delete().

{
      return mpd_run_check(connection) &&
            mpd_send_delete(connection, pos) &&
            mpd_response_finish(connection);
}


Generated by  Doxygen 1.6.0   Back to index