From d22a135343361a8243beb335ea89d5a9934a9347 Mon Sep 17 00:00:00 2001 From: Sander Kleijwegt Date: Sun, 30 Aug 2015 01:00:22 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- divesite.h | 1 + 1 file changed, 1 insertion(+) (limited to 'divesite.h') 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); -- cgit v1.2.3-70-g09d2