From 404fa8993714f59f8708a3ce937248bab9bdc3f2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 Apr 2012 22:51:45 +0200 Subject: tag_id3: export tag_id3_load() --- src/tag_id3.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/tag_id3.h') diff --git a/src/tag_id3.h b/src/tag_id3.h index b99b4480..049c53ad 100644 --- a/src/tag_id3.h +++ b/src/tag_id3.h @@ -22,6 +22,8 @@ #include "check.h" +#include + #include struct tag_handler; @@ -36,9 +38,17 @@ tag_id3_scan(const char *path_fs, struct id3_tag; struct tag *tag_id3_import(struct id3_tag *); -#else +/** + * Loads the ID3 tags from the file into a libid3tag object. The + * return value must be freed with id3_tag_delete(). + * + * @return NULL on error or if no ID3 tag was found in the file (no + * GError will be set) + */ +struct id3_tag * +tag_id3_load(const char *path_fs, GError **error_r); -#include +#else static inline bool tag_id3_scan(G_GNUC_UNUSED const char *path_fs, -- cgit v1.2.3