summaryrefslogtreecommitdiffstats
path: root/divesite.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 22:53:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 22:53:03 -0800
commit7ca3d859dc304674fe9e48c3ab3925303615a1c2 (patch)
tree56bda08fe3760acaf77c6bb0401d1818b01e10a0 /divesite.h
parentcd77e2e700da92fe0292320d5d4a82361104adfe (diff)
downloadsubsurface-7ca3d859dc304674fe9e48c3ab3925303615a1c2.tar.gz
Add helper function to detect empty dive sites
No point in keeping those. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r--divesite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h
index 4702913aa..ca650259a 100644
--- a/divesite.h
+++ b/divesite.h
@@ -6,6 +6,8 @@
#ifdef __cplusplus
extern "C" {
+#else
+#include <stdbool.h>
#endif
struct dive_site
@@ -51,6 +53,7 @@ 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);
uint32_t get_dive_site_uuid_by_gps(degrees_t latitude, degrees_t longitude, struct dive_site **dsp);
+bool dive_site_is_empty(struct dive_site *ds);
#ifdef __cplusplus
}