rsked/mpdclient.cc
/// example function that may be passed to search_album
///
example function that may be passed to search_album
example function that may be passed to search_album
void desc_song( const mpd_song *song )
{
    const char* name = mpd_song_get_tag( song, MPD_TAG_TITLE, 0 );
    const char* track = mpd_song_get_tag( song, MPD_TAG_TRACK, 0 );
    if (name) {
        LOG_INFO(Lgr) << (track ? track : "??") <<  ": " << name;
        if (const char* uri=mpd_song_get_uri(song)) {
            LOG_INFO(Lgr) << "MPD URI=" << uri;
        }
    }
}
void desc_song ( const mpd_song * song ) { const char * name = mpd_song_get_tag ( song , MPD_TAG_TITLE , 0 ) ; const char * track = mpd_song_get_tag ( song , MPD_TAG_TRACK , 0 ) ; if ( name ) { LOG_INFO ( Lgr ) << ( track ? track : " " ) << " " << name ; if ( const char * uri = mpd_song_get_uri ( song ) ) { LOG_INFO ( Lgr ) << " " << uri ; } } }
example function that may be passed to search_album
example function that may be passed to search_album