diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-23 18:31:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-29 00:09:31 +0000 |
commit | 14ab95608cc0694caff580825666d2009177e0a2 (patch) | |
tree | b620ffcf6e48e25cc04764fc1fde00ffffc89465 /core/divesite.h | |
parent | d3a7c5448fe166444980ed41757c9e03d83ece2f (diff) | |
download | subsurface-14ab95608cc0694caff580825666d2009177e0a2.tar.gz |
Dive site: pass dive-site pointer to nr_of_dives_at_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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divesite.h b/core/divesite.h index 0b21d69af..f5754f5da 100644 --- a/core/divesite.h +++ b/core/divesite.h @@ -54,7 +54,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(uint32_t uuid, bool select_only); +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); void free_dive_site(struct dive_site *ds); void delete_dive_site(uint32_t id); |