[library] New functions to support scan metadata for arbitrary path and

adding a mfi as a queue item
This commit is contained in:
chme
2017-02-18 06:55:51 +01:00
committed by ejurgensen
parent cc899651c7
commit e6f49b721f
2 changed files with 88 additions and 2 deletions

View File

@@ -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();