diff options
author | Sander Kleijwegt <sander@myowndomain.nl> | 2015-08-30 01:00:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-29 20:10:32 -0700 |
commit | d22a135343361a8243beb335ea89d5a9934a9347 (patch) | |
tree | 36856beca2b34ecd1be018097882561884c27985 /divesite.h | |
parent | 954c30c4cfea934b77ccf2035310f157238cb299 (diff) | |
download | subsurface-d22a135343361a8243beb335ea89d5a9934a9347.tar.gz |
Fix edit & show of divesites for new and existing dives.
The UI detects when it should refresh the loction after the
user finished editting a divesite. Creating and editting
divesites is now working even when the current dive is not
saved yet.
Signed-off-by: Sander Kleijwegt <sander@myowndomain.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r-- | divesite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h index 52901e9b4..30cc18da2 100644 --- a/divesite.h +++ b/divesite.h @@ -55,6 +55,7 @@ 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); uint32_t create_dive_site(const char *name, timestamp_t divetime); +uint32_t create_dive_site_from_current_dive(const char *name); uint32_t create_dive_site_with_gps(const char *name, degrees_t latitude, degrees_t longitude, timestamp_t divetime); uint32_t get_dive_site_uuid_by_name(const char *name, struct dive_site **dsp); uint32_t get_dive_site_uuid_by_gps(degrees_t latitude, degrees_t longitude, struct dive_site **dsp); |