summaryrefslogtreecommitdiff
path: root/music.h
blob: 5ad59718b40f8327e254135bf5069605c72e6f80 (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
30
31
#ifndef MUSIC_H
#define MUSIC_H

#include "tag.h"

#include <glib.h>

struct file {
	gchar *name;
	gssize size;

	struct tag *tag;
};

struct directory {
	gchar *path;
	GSList *sub;
	GSList *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);
struct file *music_find_file(const gchar *path);
void music_free();
gchar *music_get_full_path(const gchar *path);

#endif