blob: 83d532f19d2c24f0880f08df7af67908d70128cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef playlist_h
#define playlist_h
#include "config.h"
#include "library.h"
typedef struct {
char name[32];
Song* songs[playlist_max];
int cnt;
} Playlist;
void init_playlist(Playlist* p);
void playlist_rm(Playlist* p, int i);
void playlist_add(Playlist* p, Song* s);
void playlist_add_first(Playlist* p, Song* s);
void playlist_shuffle(Playlist* p);
void playlist_save(const Playlist* p);
int playlist_load(Library* l, Playlist* p, const char* name);
void get_playlist_dir(char* buf);
#endif
|