summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-22 20:52:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit92e6e2bba17ae91e1f8e5d63154323586f6ea5a2 (patch)
tree2b71b7b8bf41026c016cb7b0654d9bfdcd49fb7a /core/dive.h
parent53b4d84a6ebebc4792f3b03cb926a454075fda34 (diff)
downloadsubsurface-92e6e2bba17ae91e1f8e5d63154323586f6ea5a2.tar.gz
Core: introduce taglist_copy() function
Taglists were only copied in dive.c using the STRUCTURED_LIST_COPY macro. Export that functionality in a function. This will be needed for undo of dive-pasting. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index 7075cb143..06abc0df2 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -221,6 +221,7 @@ void taglist_cleanup(struct tag_entry **tag_list);
void taglist_init_global();
void taglist_free(struct tag_entry *tag_list);
+struct tag_entry *taglist_copy(struct tag_entry *s);
bool taglist_contains(struct tag_entry *tag_list, const char *tag);
struct extra_data {