From 2fad5783762c2f2868c8b5239835d54de23912d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Jan 2009 00:21:08 +0100 Subject: tag: added tag_get_value() --- src/tag.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tag.h') diff --git a/src/tag.h b/src/tag.h index a3740881..2347801e 100644 --- a/src/tag.h +++ b/src/tag.h @@ -109,6 +109,13 @@ tag_is_empty(const struct tag *tag) return tag->numOfItems == 0; } +/** + * Returns the first value of the specified tag type, or NULL if none + * is present in this tag object. + */ +const char * +tag_get_value(const struct tag *tag, enum tag_type type); + /** * Checks whether the tag contains one or more items with * the specified type. -- cgit v1.2.3