tag: added tag_get_value()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user