TagFile: add TagBuilder overload with ScanGenericTags() fallback

This commit is contained in:
Max Kellermann
2016-02-26 13:18:32 +01:00
parent b1d60b5c85
commit a9130cb99c
3 changed files with 29 additions and 9 deletions

View File

@@ -24,6 +24,7 @@
class Path;
struct TagHandler;
class TagBuilder;
/**
* Scan the tags of a song file. Invokes matching decoder plugins,
@@ -35,4 +36,15 @@ struct TagHandler;
bool
tag_file_scan(Path path, const TagHandler &handler, void *handler_ctx);
/**
* Scan the tags of a song file. Invokes matching decoder plugins,
* and falls back to generic scanners (APE and ID3) if no tags were
* found (but the file was recognized).
*
* @return true if the file was recognized (even if no metadata was
* found)
*/
bool
tag_file_scan(Path path, TagBuilder &builder);
#endif