diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-02 22:57:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-04 08:05:09 -0700 |
commit | de10fd4021f7fa7e203782df29456c09e07165e8 (patch) | |
tree | c59eda9916130ea5cc7581ea118a94c7e4bb6ca8 /core/divesite.h | |
parent | 9fd6b3eefbe9e1d34b4886d181ac9ba925936399 (diff) | |
download | subsurface-de10fd4021f7fa7e203782df29456c09e07165e8.tar.gz |
Add taxonomy copy helper function
We don't want to just be able to copy all of a dive site.
Sometimes we might want to be able to copy just the taxonomy.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/divesite.h')
-rw-r--r-- | core/divesite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divesite.h b/core/divesite.h index dc041d355..452a27927 100644 --- a/core/divesite.h +++ b/core/divesite.h @@ -65,6 +65,7 @@ uint32_t get_dive_site_uuid_by_gps(degrees_t latitude, degrees_t longitude, stru uint32_t get_dive_site_uuid_by_gps_and_name(char *name, degrees_t latitude, degrees_t longitude); uint32_t get_dive_site_uuid_by_gps_proximity(degrees_t latitude, degrees_t longitude, int distance, struct dive_site **dsp); bool dive_site_is_empty(struct dive_site *ds); +void copy_dive_site_taxonomy(struct dive_site *orig, struct dive_site *copy); void copy_dive_site(struct dive_site *orig, struct dive_site *copy); void merge_dive_site(struct dive_site *a, struct dive_site *b); void clear_dive_site(struct dive_site *ds); |