diff options
Diffstat (limited to 'src/tag.h')
-rw-r--r-- | src/tag.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include <stdint.h> #include <stddef.h> +#include <stdbool.h> #include <string.h> enum tag_type { @@ -88,6 +89,12 @@ static inline void tag_add_item(struct tag *tag, enum tag_type itemType, struct tag *tag_dup(const struct tag *tag); +/** + * Checks whether the tag contains one or more items with + * the specified type. + */ +bool tag_has_type(const struct tag *tag, enum tag_type type); + int tag_equal(const struct tag *tag1, const struct tag *tag2); #endif |