summaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-25 20:17:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commit6e343c734af619e620962f2ab26862c5c416300a (patch)
tree87f0f8eb807528da9928182844aecf0a18429eda /core/divesite.h
parenteecca6aab0a1970c7474df7ac8408d810a5d0bbd (diff)
downloadsubsurface-6e343c734af619e620962f2ab26862c5c416300a.tar.gz
Core: implement move functions for dive and dive_site table
To allow efficient moving of downloaded dives from the download thread to the model, implement a general move function that moves table data. Instantiate that function for the dive and dive_site tables. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
-rw-r--r--core/divesite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divesite.h b/core/divesite.h
index 2dc64f81e..e5ef4d1b4 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -71,6 +71,7 @@ unsigned int get_distance(const location_t *loc1, const location_t *loc2);
struct dive_site *find_or_create_dive_site_with_name(const char *name, struct dive_site_table *ds_table);
void purge_empty_dive_sites(struct dive_site_table *ds_table);
void clear_dive_site_table(struct dive_site_table *ds_table);
+void move_dive_site_table(struct dive_site_table *src, struct dive_site_table *dst);
void add_dive_to_dive_site(struct dive *d, struct dive_site *ds);
struct dive_site *unregister_dive_from_dive_site(struct dive *d);