summaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
Diffstat (limited to 'library.h')
-rw-r--r--library.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/library.h b/library.h
index 7c9e000..e94c10a 100644
--- a/library.h
+++ b/library.h
@@ -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