From 92e6e2bba17ae91e1f8e5d63154323586f6ea5a2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 22 Feb 2019 20:52:50 +0100 Subject: 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 --- core/dive.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/dive.h') 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 { -- cgit v1.2.3-70-g09d2