summaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-23 18:55:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commit8de471f90e95a5a75d0fec78d5bbf900eb90f235 (patch)
tree62812fb5aab9f6a8cb17db8969ab4e10eb041de0 /core/divesite.h
parent14ab95608cc0694caff580825666d2009177e0a2 (diff)
downloadsubsurface-8de471f90e95a5a75d0fec78d5bbf900eb90f235.tar.gz
Dive site: pass dive-site pointer to is_dive_site_used()
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 f5754f5da..2d5c02110 100644
--- a/core/divesite.h
+++ b/core/divesite.h
@@ -55,7 +55,7 @@ static inline struct dive_site *get_dive_site_by_uuid(uint32_t uuid)
void dive_site_table_sort();
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(uint32_t uuid, 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);
struct dive_site *create_dive_site(const char *name, timestamp_t divetime);