diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-09-25 20:17:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-02 08:04:49 -0700 |
commit | 6e343c734af619e620962f2ab26862c5c416300a (patch) | |
tree | 87f0f8eb807528da9928182844aecf0a18429eda /core/divelist.c | |
parent | eecca6aab0a1970c7474df7ac8408d810a5d0bbd (diff) | |
download | subsurface-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/divelist.c')
-rw-r--r-- | core/divelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c index 227528e18..c15ca8d3c 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -753,6 +753,7 @@ static MAKE_GET_IDX(dive_table, struct dive *, dives) MAKE_SORT(dive_table, struct dive *, dives, comp_dives) MAKE_REMOVE(dive_table, struct dive *, dive) MAKE_CLEAR_TABLE(dive_table, dives, dive) +MAKE_MOVE_TABLE(dive_table, dives) void insert_dive(struct dive_table *table, struct dive *d) { |