diff options
Diffstat (limited to 'binding/media-manager.h')
-rw-r--r-- | binding/media-manager.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/binding/media-manager.h b/binding/media-manager.h index 34d87e1..f1f177e 100644 --- a/binding/media-manager.h +++ b/binding/media-manager.h @@ -74,7 +74,15 @@ void DebugTraceSendMsg(int level, gchar* message); #define FREEDESKTOP_PROPERTIES "org.freedesktop.DBus.Properties" //sqlite -#define SQL_QUERY "SELECT files.path FROM files LEFT JOIN audios " \ +#define SQL_QUERY "SELECT files.path, audios.title, audio_artists.name, " \ + "audio_albums.name, audio_genres.name, audios.length " \ + "FROM files LEFT JOIN audios " \ + "LEFT JOIN audio_artists " \ + "ON audio_artists.id = audios.artist_id " \ + "LEFT JOIN audio_albums " \ + "ON audio_albums.id = audios.album_id " \ + "LEFT JOIN audio_genres " \ + "ON audio_genres.id = audios.genre_id " \ "WHERE audios.id = files.id ORDER BY " \ "audios.artist_id, audios.album_id, audios.trackno" @@ -100,4 +108,15 @@ void ListUnlock(); GList* media_lightmediascanner_scan(void); GList* media_local_scan(GList *list); +struct Media_Item { + gchar *path; + struct { + gchar *title; + gchar *artist; + gchar *album; + gchar *genre; + gint duration; + } metadata; +}; + #endif |