core: add collapsed state to the dive data structure

This is only used in Subsurface-mobile.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-11-06 05:45:30 +01:00
parent 9d9047d040
commit ff47dd9b30

View file

@ -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;