diff options
author | Max Kellermann <max@duempel.org> | 2009-11-04 18:47:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-04 18:47:42 +0100 |
commit | a434c35eb46ff71e2b0441595dcc7985e1b292c2 (patch) | |
tree | 073d3e51ab3a11090afecda68d6530415908ef79 /src/tag.h | |
parent | 7af8c88e37610fe7ebb167fadc28656385705d18 (diff) | |
download | mpd-a434c35eb46ff71e2b0441595dcc7985e1b292c2.tar.gz mpd-a434c35eb46ff71e2b0441595dcc7985e1b292c2.tar.xz mpd-a434c35eb46ff71e2b0441595dcc7985e1b292c2.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
@@ -96,6 +96,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); |