#include "metadata.h" #include #include void printSong( struct song_metadata *song ) { if ( song->title == NULL ) return; printf( "%s - %s\n", song->title, song->artist ); } void printMeta( struct song_metadata *song ) { if ( song->title == NULL ) return; printf( "TITLE: %s\nALBUM: %s\nARTIST: %s\n", song->title, song->album, song->artist ); if ( song->year != NULL ) { printf( "YEAR: %s\n", song->year ); } printf( "FILE: %s\n", song->file ); if ( song->art_uri != NULL ) { printf( "ART: %s\n", song->art_uri ); } }