mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 12:06:12 -05:00
Rework process_media_file() and related DB support routines
Avoid pulling all the file info from the DB in process_media_file() as anything besides the file id and timestamp is not used at all.
This commit is contained in:
7
src/db.h
7
src/db.h
@@ -226,10 +226,13 @@ void
|
||||
db_file_inc_playcount(int id);
|
||||
|
||||
void
|
||||
db_file_ping(int id);
|
||||
db_file_ping(char *path);
|
||||
|
||||
int
|
||||
db_file_id_bypath(char *path, int *id);
|
||||
db_file_id_bypath(char *path);
|
||||
|
||||
time_t
|
||||
db_file_stamp_bypath(char *path);
|
||||
|
||||
struct media_file_info *
|
||||
db_file_fetch_byid(int id);
|
||||
|
||||
Reference in New Issue
Block a user