diff options
author | Max Kellermann <max@duempel.org> | 2012-04-23 22:51:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-04-23 22:51:45 +0200 |
commit | 404fa8993714f59f8708a3ce937248bab9bdc3f2 (patch) | |
tree | 652bb06648373b59a26fb55dae3b1663f75bec8c /src/tag_id3.h | |
parent | 89377556cdd20bdc8cdb5861f271164b1cba6ecf (diff) |
tag_id3: export tag_id3_load()
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 b99b4480..049c53ad 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, |