diff options
author | quou <quou@disroot.org> | 2024-06-01 12:19:16 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-06-01 12:20:17 +1000 |
commit | ea7cd94f7aeb177618db3907a6c86b7252e018f0 (patch) | |
tree | e972f9cf590ef756c2e41f3eac5b03e16db08300 /library.h |
Initial commit.
Diffstat (limited to 'library.h')
-rw-r--r-- | library.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/library.h b/library.h new file mode 100644 index 0000000..7c9e000 --- /dev/null +++ b/library.h @@ -0,0 +1,19 @@ +#ifndef library_h +#define library_h + +#include "config.h" + +typedef struct { + char name[song_name_max]; + char file[song_filename_max]; +} Song; + +typedef struct { + Song songs[max_songs]; + int song_count; +} Library; + +void init_library(Library* l); +void build_library(Library* l, const char* path); + +#endif |