summaryrefslogtreecommitdiff
path: root/library.h
blob: 7c9e000e75e6ba864413f746dede1abb0bf11aea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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