mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow creating new dive site with specific uuid
Test cases require deterministic results and thus we should allow uuid to be specified when needed. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0d2d91a28c
commit
76fe262a0f
4 changed files with 10 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ static inline struct dive_site *get_dive_site_by_uuid(uint32_t uuid)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
struct dive_site *alloc_dive_site();
|
||||
struct dive_site *alloc_dive_site(uint32_t uuid);
|
||||
int nr_of_dives_at_dive_site(uint32_t uuid, bool select_only);
|
||||
bool is_dive_site_used(uint32_t uuid, bool select_only);
|
||||
void delete_dive_site(uint32_t id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue