summaryrefslogtreecommitdiff
path: root/library.h
blob: e94c10a8c1d534e03aa937fcfd46076eb0548154 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef library_h
#define library_h

#include "memory.h"

typedef struct {
	char path[256];
	char name[64];
	char artist[64];
	char album[64];
} Song;

typedef struct {
	Song* songs;
	int* indices;
	int cap, cnt;
} Library;

void build_library(
	Arena* a,
	Library* lib,
	const char* path
);

int get_song_meta(const char* path, Song* s);

#endif