rsked/mpdclient.cc
/// Enqueue a song given a pointer to its mpd_song song struct.
/// @return id of the added song
/// *  May throw.
///
Enqueue a song given a pointer to its mpd_song song struct.
Enqueue a song given a pointer to its mpd_song song struct .
int Mpd_client::enqueue( const mpd_song* song )
{
    int id=(-1);
    const char *uri = mpd_song_get_uri( song );
    if (uri) {
        id = enqueue_id( uri );
    }
    return id;
}
int Mpd_client :: enqueue ( const mpd_song * song ) { int id = ( -1 ) ; const char * uri = mpd_song_get_uri ( song ) ; if ( uri ) { id = enqueue_id ( uri ) ; } return id ; }
Enqueue a song given a pointer to its mpd_song song struct.
Enqueue a song given a pointer to its mpd_song song struct .