diff options
Diffstat (limited to 'src/tag_id3.h')
-rw-r--r-- | src/tag_id3.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tag_id3.h b/src/tag_id3.h index b99b4480f..049c53ad9 100644 --- a/src/tag_id3.h +++ b/src/tag_id3.h @@ -22,6 +22,8 @@ #include "check.h" +#include <glib.h> + #include <stdbool.h> 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 <glib.h> +#else static inline bool tag_id3_scan(G_GNUC_UNUSED const char *path_fs, |