mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show dive coordinates on map based on dive site
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ef81d3ed3
commit
d488c37cc1
2 changed files with 31 additions and 18 deletions
7
dive.h
7
dive.h
|
@ -505,6 +505,13 @@ static inline struct dive *get_dive_from_table(int nr, struct dive_table *dt)
|
|||
return dt->dives[nr];
|
||||
}
|
||||
|
||||
static inline struct dive_site *get_dive_site_for_dive(struct dive *dive)
|
||||
{
|
||||
if (dive)
|
||||
return get_dive_site_by_uuid(dive->dive_site_uuid);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline unsigned int number_of_computers(struct dive *dive)
|
||||
{
|
||||
unsigned int total_number = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue