From 08a7d4ffb554e150e789b51c0ede49760aa9f924 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 8 Apr 2018 15:36:05 +0100 Subject: Use snprintf in place of sprintf. --- metadata_hub.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'metadata_hub.h') diff --git a/metadata_hub.h b/metadata_hub.h index 3ffc0dc..2982555 100644 --- a/metadata_hub.h +++ b/metadata_hub.h @@ -32,6 +32,7 @@ typedef struct track_metadata_bundle { item_composite_id[16]; // seems to be nowplaying 4 ids: dbid, plid, playlistItem, itemid char *track_name; // a malloced string -- if non-zero, free it before replacing it char *artist_name; // a malloced string -- if non-zero, free it before replacing it + char *album_artist_name; // a malloced string -- if non-zero, free it before replacing it char *album_name; // a malloced string -- if non-zero, free it before replacing it char *genre; // a malloced string -- if non-zero, free it before replacing it char *comment; // a malloced string -- if non-zero, free it before replacing it @@ -39,7 +40,10 @@ typedef struct track_metadata_bundle { char *file_kind; // a malloced string -- if non-zero, free it before replacing it char *song_description; // a malloced string -- if non-zero, free it before replacing it char *song_album_artist; // a malloced string -- if non-zero, free it before replacing it - char *sort_as; // a malloced string -- if non-zero, free it before replacing it + char *sort_name; // a malloced string -- if non-zero, free it before replacing it + char *sort_artist; // a malloced string -- if non-zero, free it before replacing it + char *sort_album; // a malloced string -- if non-zero, free it before replacing it + char *sort_composer; // a malloced string -- if non-zero, free it before replacing it uint32_t songtime_in_milliseconds; } track_metadata_bundle; -- cgit v1.2.3