7 META_ALBUM_ART
= 1, /* Album Cover art */
8 META_ARTIST_ART
= 2, /* Artist image */
9 META_ALBUM_TXT
= 4, /* Album story */
10 META_ARTIST_TXT
= 8, /* Artist biography */
11 META_SONG_TXT
= 16, /* Lyrics */
12 META_ARTIST_SIMILAR
= 32, /* Similar artists */
13 META_QUERY_DATA_TYPES
= 127, /* Bitmask for getting the metadata types only */
14 META_QUERY_NO_CACHE
= 128 /* Do the query withouth checking the cache first */
19 META_DATA_UNAVAILABLE
,
23 typedef void (*MetaDataCallback
)(mpd_Song
*song
, MetaDataResult result
, char *path
, gpointer data
);
25 #include "gmpc-meta-watcher.h"
26 extern GmpcMetaWatcher
*gmw
;
28 /*guint meta_data_get_path_callback(mpd_Song *song, MetaDataType type, MetaDataCallback callback, gpointer data);*/
29 void meta_data_set_cache(mpd_Song
*song
, MetaDataType type
, MetaDataResult result
, char *path
);
30 void meta_data_init(void);
31 void meta_data_check_plugin_changed(void);
32 void meta_data_handle_remove_request(guint id
);
33 void meta_data_destroy(void);
34 MetaDataResult
meta_data_get_from_cache(mpd_Song
*song
, MetaDataType type
, char **path
);
36 void meta_data_cleanup(void);
37 MetaDataResult
meta_data_get_path(mpd_Song
*tsong
, MetaDataType type
, gchar
**path
,MetaDataCallback callback
, gpointer data
);