diff options
Diffstat (limited to 'src/storage/tag_utility.cpp')
-rw-r--r-- | src/storage/tag_utility.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/storage/tag_utility.cpp b/src/storage/tag_utility.cpp index 5115f7d..2701934 100644 --- a/src/storage/tag_utility.cpp +++ b/src/storage/tag_utility.cpp @@ -400,4 +400,17 @@ char * taglib_token_to_string(FacadePhraseIndex * phrase_index, return phrase; } +bool taglib_validate_token_with_string(FacadePhraseIndex * phrase_index, + phrase_token_t token, + const char * string){ + bool result = false; + + char * str = taglib_token_to_string(phrase_index, token); + result = (0 == strcmp(str, string)); + g_free(str); + + return result; +} + + }; |