blob: e93a8c12974e1edd84d551446d78c7134fb09f3e (
plain)
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
28
29
|
#ifndef _MUSIC_H_
#define _MUSIC_H_
/* for size_t */
#include <stddef.h>
#include <glib.h>
struct file {
gchar *name;
gssize size;
struct file *next;
};
struct directory {
gchar *path;
struct directory *sub, *next;
struct file *files;
};
extern struct directory *music_root;
gboolean music_init(const gchar *path);
gboolean music_scan(struct directory *directory);
gboolean music_scan_root();
struct directory *music_find_dir(const gchar *path);
void music_free();
#endif
|