summaryrefslogtreecommitdiffstats
path: root/divesite.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 07:02:26 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 14:27:34 -0800
commitd8146445fcf962e456af91c592536481fdc2753f (patch)
treeccb208f025ac127e86aee6126047ff5e51e6740c /divesite.h
parentd2baa3631270f8b9bcd612f971d269f5d06fca79 (diff)
downloadsubsurface-d8146445fcf962e456af91c592536481fdc2753f.tar.gz
Add another helper funtion
We need to be able to get rid of dive sites as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r--divesite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h
index 4dca3ee9d..4702913aa 100644
--- a/divesite.h
+++ b/divesite.h
@@ -46,6 +46,7 @@ static inline struct dive_site *get_dive_site_by_uuid(uint32_t uuid)
}
struct dive_site *alloc_dive_site();
+void delete_dive_site(uint32_t id);
uint32_t create_dive_site(const char *name);
uint32_t create_dive_site_with_gps(const char *name, degrees_t latitude, degrees_t longitude);
uint32_t get_dive_site_uuid_by_name(const char *name, struct dive_site **dsp);