summaryrefslogtreecommitdiff
path: root/src/TagFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 13:18:32 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 13:48:38 +0100
commita9130cb99c7c51f81b641c6a24834063507f0164 (patch)
tree54b3188cdf43c15767d8548946a2f625aecf3dee /src/TagFile.hxx
parentb1d60b5c85608df13c8032d0582125ad0ab4dd28 (diff)
TagFile: add TagBuilder overload with ScanGenericTags() fallback
Diffstat (limited to 'src/TagFile.hxx')
-rw-r--r--src/TagFile.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/TagFile.hxx b/src/TagFile.hxx
index 0813f89e0..7facea8d1 100644
--- a/src/TagFile.hxx
+++ b/src/TagFile.hxx
@@ -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