mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[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:
6
src/db.h
6
src/db.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user