diff options
author | Max Kellermann <max@duempel.org> | 2010-06-30 21:31:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-06-30 21:31:45 +0200 |
commit | 9550c87327cdb0c97ca855bc5d77d28cbbb723d5 (patch) | |
tree | 6f68e282b3f67a3ef29e493af570afde77f16680 /src/tag.h | |
parent | e223e8a5b58509287098cb1deffb9655c7249a0c (diff) | |
download | mpd-9550c87327cdb0c97ca855bc5d77d28cbbb723d5.tar.gz mpd-9550c87327cdb0c97ca855bc5d77d28cbbb723d5.tar.xz mpd-9550c87327cdb0c97ca855bc5d77d28cbbb723d5.zip |
tag: added function tag_name_parse()
Convert a string into a tag_type enum.
Diffstat (limited to '')
-rw-r--r-- | src/tag.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -94,6 +94,22 @@ struct tag { }; /** + * Parse the string, and convert it into a #tag_type. Returns + * #TAG_NUM_OF_ITEM_TYPES if the string could not be recognized. + */ +enum tag_type +tag_name_parse(const char *name); + +/** + * Parse the string, and convert it into a #tag_type. Returns + * #TAG_NUM_OF_ITEM_TYPES if the string could not be recognized. + * + * Case does not matter. + */ +enum tag_type +tag_name_parse_i(const char *name); + +/** * Creates an empty #tag. */ struct tag *tag_new(void); |