[library/filescanner/spotify] Add library source abstraction and new

"library" thread

- Implement filescanner as a library_source
- Add library source implementation for spotify
- Move process_media_info to library with small adjustments:
  - Remove dependency to F_SCAN_TYPE defines
  - Pass data_kind as parameter
  - Pass media_kind and compilation as parameter if a source forces a
specific value for these
- Move declaration of scan_ffmpeg to library; add
library_add_playlist_info to library
This commit is contained in:
chme
2016-12-31 07:28:18 +01:00
parent ca6836f638
commit 56ce3f9cba
14 changed files with 1018 additions and 674 deletions

View File

@@ -527,7 +527,7 @@ int
db_file_id_by_virtualpath_match(char *path);
void
db_file_stamp_bypath(char *path, time_t *stamp, int *id);
db_file_stamp_bypath(const char *path, time_t *stamp, int *id);
struct media_file_info *
db_file_fetch_byid(int id);
@@ -570,7 +570,7 @@ void
db_pl_ping_bymatch(char *path, int isdir);
struct playlist_info *
db_pl_fetch_bypath(char *path);
db_pl_fetch_bypath(const char *path);
struct playlist_info *
db_pl_fetch_byvirtualpath(char *virtual_path);
@@ -582,7 +582,7 @@ int
db_pl_add(struct playlist_info *pli, int *id);
int
db_pl_add_item_bypath(int plid, char *path);
db_pl_add_item_bypath(int plid, const char *path);
int
db_pl_add_item_byid(int plid, int fileid);