summaryrefslogtreecommitdiffstats
path: root/divesite.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-17 08:39:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-17 08:39:49 -0700
commit2a4cacda2174f1fdacaf042c975204f40e7dd0d0 (patch)
tree81723e2418f4556e1a56b07eda81b2d5669ee2e1 /divesite.h
parentc78e4fb92d9b9a488a794d7485fe1214f50f80fe (diff)
downloadsubsurface-2a4cacda2174f1fdacaf042c975204f40e7dd0d0.tar.gz
Better invalid dive site name
This should ensure that no one ever might end up with our "invalid" name for real. And it allows us to more easily test elsewhere for that invalid value. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r--divesite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h
index e0418b203..7dab210f1 100644
--- a/divesite.h
+++ b/divesite.h
@@ -63,6 +63,8 @@ void clear_dive_site(struct dive_site *ds);
unsigned int get_distance(degrees_t lat1, degrees_t lon1, degrees_t lat2, degrees_t lon2);
uint32_t find_or_create_dive_site_with_name(const char *name);
+#define INVALID_DIVE_SITE_NAME "development use only - not a valid dive site name"
+
#ifdef __cplusplus
}
#endif