summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 02:20:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 02:20:13 -0800
commitf9b9535c6921e096583d1872cbf05cfea2252c11 (patch)
treee62399c5c5e9380c9a0baca7cc108226786fd244 /dive.h
parentb51710c01ed481504a8103ab339adf3c01f83f7b (diff)
downloadsubsurface-f9b9535c6921e096583d1872cbf05cfea2252c11.tar.gz
Add tag helper functions to allow us to count dives with a given tag
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index e3c4c74e7..43c322e63 100644
--- a/dive.h
+++ b/dive.h
@@ -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;