2020-05-29 12:21:05 +00:00
|
|
|
#ifndef METADATA_H
|
|
|
|
#define METADATA_H
|
|
|
|
|
2020-05-29 19:59:14 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2020-05-29 12:21:05 +00:00
|
|
|
struct song_metadata {
|
2020-05-29 18:54:05 +00:00
|
|
|
const char *title;
|
|
|
|
const char *artist;
|
|
|
|
const char *album;
|
|
|
|
const char *year;
|
|
|
|
const char *file;
|
|
|
|
const char *art_uri;
|
2020-05-29 19:59:14 +00:00
|
|
|
size_t duration;
|
|
|
|
size_t position;
|
2020-05-29 12:21:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void printSong( struct song_metadata *song );
|
2020-05-29 18:27:46 +00:00
|
|
|
void printMeta( struct song_metadata *song );
|
2020-05-29 18:53:27 +00:00
|
|
|
void freeSong( struct song_metadata *song );
|
2020-05-29 12:21:05 +00:00
|
|
|
|
|
|
|
#endif
|