#ifndef MUSIC_H #define MUSIC_H #include "tag.h" #include struct directory { gchar *path; GSList *sub; GSList *files; }; struct file { gchar *name; gssize size; struct directory *parent; struct tag *tag; }; extern struct directory *music_root; gboolean music_init(); 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(); GSList *music_find_artist(const gchar *name); GSList *music_find_title(const gchar *name); GSList *music_find_album(const gchar *name); gchar *music_get_full_path(const gchar *path); #endif