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

bool mpd_run_swap ( struct mpd_connection connection,
unsigned  pos1,
unsigned  pos2 

Shortcut for mpd_send_swap() and mpd_response_finish().

connection the connection to MPD
pos1 the position of one song
pos2 the position of the other song

Definition at line 368 of file queue.c.

References mpd_response_finish(), mpd_run_swap(), and mpd_send_swap().

Referenced by mpd_run_swap().

      return mpd_run_check(connection) &&
            mpd_send_swap(connection, pos1, pos2) &&

Generated by  Doxygen 1.6.0   Back to index