summaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-23 19:11:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commitf527a70831a37e736431baa5705c9d188fc12f4b (patch)
tree5260e51c944b193175b9e318457bb281ee760fdf /core/divesite.h
parent8de471f90e95a5a75d0fec78d5bbf900eb90f235 (diff)
downloadsubsurface-f527a70831a37e736431baa5705c9d188fc12f4b.tar.gz
Dive site: pass dive-site pointer to delete_dive_site()
Instead of passing a uuid, pass a pointer to the dive site. This is small step in an effort to remove uuids. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
-rw-r--r--core/divesite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divesite.h b/core/divesite.h
index 2d5c02110..7ea7c53cc 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -57,7 +57,7 @@ struct dive_site *alloc_or_get_dive_site(uint32_t uuid);
int nr_of_dives_at_dive_site(struct dive_site *ds, bool select_only);
bool is_dive_site_used(struct dive_site *ds, bool select_only);
void free_dive_site(struct dive_site *ds);
-void delete_dive_site(uint32_t id);
+void delete_dive_site(struct dive_site *ds);
struct dive_site *create_dive_site(const char *name, timestamp_t divetime);
struct dive_site *create_dive_site_from_current_dive(const char *name);
struct dive_site *create_dive_site_with_gps(const char *name, const location_t *, timestamp_t divetime);