diff options
author | Max Kellermann <max@duempel.org> | 2014-12-02 22:17:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-02 22:17:47 +0100 |
commit | a66051216f520d5a863c557433733f3e20b37d17 (patch) | |
tree | 1b3dfb28be68ff9c5ef3c35e6c8830e16b3d0539 /src/tag | |
parent | 0debba0f6e35d88ad17734fda2605e4f97f19820 (diff) |
TagId3: add "pure" attributes
Diffstat (limited to 'src/tag')
-rw-r--r-- | src/tag/TagId3.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index 02dc58364..2f10dfb53 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -66,12 +66,14 @@ static constexpr Domain id3_domain("id3"); +gcc_pure static inline bool tag_is_id3v1(struct id3_tag *tag) { return (id3_tag_options(tag, 0, 0) & ID3_TAG_OPTION_ID3V1) != 0; } +gcc_pure static id3_utf8_t * tag_id3_getstring(const struct id3_frame *frame, unsigned i) { @@ -249,10 +251,11 @@ tag_id3_import_comment(struct id3_tag *tag, const char *id, TagType type, * Parse a TXXX name, and convert it to a TagType enum value. * Returns TAG_NUM_OF_ITEM_TYPES if the TXXX name is not understood. */ +gcc_pure static TagType tag_id3_parse_txxx_name(const char *name) { - static const struct tag_table txxx_tags[] = { + static constexpr struct tag_table txxx_tags[] = { { "ALBUMARTISTSORT", TAG_ALBUM_ARTIST_SORT }, { "MusicBrainz Artist Id", TAG_MUSICBRAINZ_ARTISTID }, { "MusicBrainz Album Id", TAG_MUSICBRAINZ_ALBUMID }, |