From 5d73215a8dad922c8e383f3837f3ec9e26503389 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 11 Feb 2012 19:12:02 +0100 Subject: decoder_plugin: scan tags with callback table Pass a callback table to scan_file() and scan_stream(), instead of returning a tag object. --- src/tag_id3.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/tag_id3.h') 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 + +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 +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) { -- cgit v1.2.3