diff options
author | quou <quou@disroot.org> | 2024-06-02 21:46:07 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-06-02 21:47:26 +1000 |
commit | 62b4a3ededd237f4b4850d91c052585e2f687499 (patch) | |
tree | 25bf590a634c6c71f399cf9b1d620500f06b8b9f /library.h | |
parent | 2e761bdb8badecdbda2925a056a6d5aa3e3cac83 (diff) |
Switched to luigi, parsing out FLAC metadata.
Diffstat (limited to 'library.h')
-rw-r--r-- | library.h | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -1,19 +1,27 @@ #ifndef library_h #define library_h -#include "config.h" +#include "memory.h" typedef struct { - char name[song_name_max]; - char file[song_filename_max]; + char path[256]; + char name[64]; + char artist[64]; + char album[64]; } Song; typedef struct { - Song songs[max_songs]; - int song_count; + Song* songs; + int* indices; + int cap, cnt; } Library; -void init_library(Library* l); -void build_library(Library* l, const char* path); +void build_library( + Arena* a, + Library* lib, + const char* path +); + +int get_song_meta(const char* path, Song* s); #endif |