aboutsummaryrefslogtreecommitdiff
path: root/src/tag_id3.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-11 19:12:02 +0100
committerMax Kellermann <max@duempel.org>2012-02-11 17:04:29 +0100
commit5d73215a8dad922c8e383f3837f3ec9e26503389 (patch)
tree8fc4b96d93a907054a05d3250f97bf4f68c6df85 /src/tag_id3.h
parentb7356bc526dbbd6fa00d40caff2addec10ae7c7e (diff)
decoder_plugin: scan tags with callback table
Pass a callback table to scan_file() and scan_stream(), instead of returning a tag object.
Diffstat (limited to 'src/tag_id3.h')
-rw-r--r--src/tag_id3.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tag_id3.h b/src/tag_id3.h
index 17dde4b3..fb5c7c65 100644
--- a/src/tag_id3.h
+++ b/src/tag_id3.h
@@ -22,9 +22,17 @@
#include "check.h"
+#include <stdbool.h>
+
+struct tag_handler;
struct tag;
#ifdef HAVE_ID3TAG
+
+bool
+tag_id3_scan(const char *path_fs,
+ const struct tag_handler *handler, void *handler_ctx);
+
struct id3_tag;
struct tag *tag_id3_import(struct id3_tag *);
@@ -34,6 +42,14 @@ struct tag *tag_id3_load(const char *file);
#include <glib.h>
+static inline bool
+tag_id3_scan(G_GNUC_UNUSED const char *path_fs,
+ G_GNUC_UNUSED const struct tag_handler *handler,
+ G_GNUC_UNUSED void *handler_ctx)
+{
+ return false;
+}
+
static inline struct tag *
tag_id3_load(G_GNUC_UNUSED const char *file)
{