mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 01:50:26 -05:00
[library] New functions to support scan metadata for arbitrary path and
adding a mfi as a queue item
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
#include "commands.h"
|
||||
#include "db.h"
|
||||
|
||||
#define METADATA_OK 0
|
||||
#define METADATA_ERROR -1
|
||||
#define METADATA_PATH_INVALID -2
|
||||
|
||||
/*
|
||||
* Definition of a library source
|
||||
*
|
||||
@@ -62,6 +66,10 @@ struct library_source
|
||||
*/
|
||||
int (*fullrescan)(void);
|
||||
|
||||
/*
|
||||
* Scans metadata for the media file with the given path into the given mfi
|
||||
*/
|
||||
int (*scan_metadata)(const char *path, struct media_file_info *mfi);
|
||||
};
|
||||
|
||||
|
||||
@@ -71,6 +79,12 @@ library_add_media(struct media_file_info *mfi);
|
||||
int
|
||||
library_add_playlist_info(const char *path, const char *title, const char *virtual_path, enum pl_type type, int parent_pl_id, int dir_id);
|
||||
|
||||
int
|
||||
library_scan_media(const char *path, struct media_file_info *mfi);
|
||||
|
||||
int
|
||||
library_add_queue_item(struct media_file_info* mfi);
|
||||
|
||||
void
|
||||
library_rescan();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user