summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-06 05:45:30 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-08 20:50:05 +0100
commitff47dd9b307a74f181c78be7da0048fbbfe2acf5 (patch)
tree1d00571df8c3289f8560b9ba077a451c0892fd70 /core/dive.h
parent9d9047d04036726afaf767deec89be13589cc7e9 (diff)
downloadsubsurface-ff47dd9b307a74f181c78be7da0048fbbfe2acf5.tar.gz
core: add collapsed state to the dive data structure
This is only used in Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index 6d1bd450d..2d17af17f 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -144,6 +144,9 @@ struct dive {
struct dive_trip *divetrip;
bool selected;
bool hidden_by_filter;
+#if defined(SUBSURFACE_MOBILE)
+ uint8_t collapsed; /* four values: 0 = don't show, 1 = show as dive, 2 = show corresponding trip, 3 = show dive and trip */
+#endif
timestamp_t when;
struct dive_site *dive_site;
char *notes;