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

bool mpd_run_swap_id ( struct mpd_connection connection,
unsigned  id1,
unsigned  id2 
)

Shortcut for mpd_send_swap_id() and mpd_response_finish().

Parameters:
connection the connection to MPD
id1 the id of one song
id2 the id of the other song

Definition at line 382 of file queue.c.

References mpd_response_finish(), mpd_run_swap_id(), and mpd_send_swap_id().

Referenced by mpd_run_swap_id().

{
      return mpd_run_check(connection) &&
            mpd_send_swap_id(connection, id1, id2) &&
            mpd_response_finish(connection);
}


Generated by  Doxygen 1.6.0   Back to index