mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2894ee0759
commit
51183f4ee7
2 changed files with 24 additions and 0 deletions
2
dive.h
2
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue