diff --git a/include/libdivecomputer/parser.h b/include/libdivecomputer/parser.h index fdc5ea1..032e92a 100644 --- a/include/libdivecomputer/parser.h +++ b/include/libdivecomputer/parser.h @@ -100,8 +100,12 @@ typedef enum parser_sample_event_t { SAMPLE_EVENT_HEADING, SAMPLE_EVENT_TISSUELEVEL, SAMPLE_EVENT_GASCHANGE2, /* Deprecated: replaced by DC_SAMPLE_GASMIX. */ + SAMPLE_EVENT_STRING, } parser_sample_event_t; +/* To let the compile know we have this */ +#define SAMPLE_EVENT_STRING SAMPLE_EVENT_STRING + /* For backwards compatibility */ #define SAMPLE_EVENT_UNKNOWN SAMPLE_EVENT_FLOOR @@ -217,6 +221,7 @@ typedef union dc_sample_value_t { unsigned int time; unsigned int flags; unsigned int value; + const char *name; } event; unsigned int rbt; unsigned int heartbeat;