diff options
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index 66760dd22..a638cfd0c 100644 --- a/core/dive.h +++ b/core/dive.h @@ -570,6 +570,14 @@ static inline struct dive_site *get_dive_site_for_dive(struct dive *dive) return NULL; } +static inline char *get_dive_country(struct dive *dive) +{ + struct dive_site *ds = get_dive_site_by_uuid(dive->dive_site_uuid); + if (ds && ds->country) + return ds->country; + return NULL; +} + static inline char *get_dive_location(struct dive *dive) { struct dive_site *ds = get_dive_site_by_uuid(dive->dive_site_uuid); |