Add tag helper functions to allow us to count dives with a given tag

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-11 02:20:13 -08:00
parent b51710c01e
commit f9b9535c69
2 changed files with 25 additions and 0 deletions

3
dive.h
View file

@ -233,6 +233,9 @@ void taglist_cleanup(struct tag_entry **tag_list);
void taglist_init_global();
void taglist_free(struct tag_entry *tag_list);
bool taglist_contains(struct tag_entry *tag_list, const char *tag);
int count_dives_with_tag(const char *tag);
struct extra_data {
const char *key;
const char *value;