aboutsummaryrefslogtreecommitdiffstats
path: root/binding/media-manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'binding/media-manager.h')
-rw-r--r--binding/media-manager.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/binding/media-manager.h b/binding/media-manager.h
index 2e5c0d3..37621b0 100644
--- a/binding/media-manager.h
+++ b/binding/media-manager.h
@@ -74,7 +74,8 @@ void DebugTraceSendMsg(int level, gchar* message);
#define FREEDESKTOP_PROPERTIES "org.freedesktop.DBus.Properties"
//sqlite
-#define SQL_QUERY "SELECT files.path, audios.title, audio_artists.name, " \
+#define AUDIO_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 " \
@@ -88,6 +89,13 @@ void DebugTraceSendMsg(int level, gchar* message);
"ORDER BY " \
"audios.artist_id, audios.album_id, audios.trackno"
+#define VIDEO_SQL_QUERY \
+ "SELECT files.path, videos.title, videos.artist, \"\", \"\", " \
+ "videos.length FROM files LEFT JOIN videos " \
+ "WHERE files.path LIKE '%s/%%' " \
+ "ORDER BY " \
+ "videos.title"
+
typedef struct {
GList *list;
gchar *uri_filter;
@@ -108,7 +116,7 @@ int MediaPlayerManagerInit(void);
void ListLock();
void ListUnlock();
-GList* media_lightmediascanner_scan(GList *list, gchar *uri);
+GList* media_lightmediascanner_scan(GList *list, gchar *uri, int scan_type);
struct Media_Item {
gchar *path;
@@ -121,4 +129,9 @@ struct Media_Item {
} metadata;
};
+enum {
+ LMS_AUDIO_SCAN,
+ LMS_VIDEO_SCAN,
+};
+
#endif