summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-02 12:16:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-02 12:16:03 -0700
commit51183f4ee7b78505af97bae9c28521cb6aed51b4 (patch)
tree678dc76f8a2875981218d3e8f6647a8e2d8c7f1f /dive.h
parent2894ee0759ba69551ecf2037f61baa4ce45cd39b (diff)
downloadsubsurface-51183f4ee7b78505af97bae9c28521cb6aed51b4.tar.gz
Tag list handling: add two new helpers
taglist_added() simply figures out the tags that are in the new list but not in the original list. taglist_dump() makes debugging things easier. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index cb92485c5..625f650aa 100644
--- a/dive.h
+++ b/dive.h
@@ -230,6 +230,8 @@ struct tag_entry {
extern struct tag_entry *g_tag_list;
struct divetag *taglist_add_tag(struct tag_entry **tag_list, const char *tag);
+struct tag_entry *taglist_added(struct tag_entry *original_list, struct tag_entry *new_list);
+void dump_taglist(const char *intro, struct tag_entry *tl);
/*
* Writes all divetags in tag_list to buffer, limited by the buffer's (len)gth.