[PATCH 1/8] Added define so apps can tell if new functionality is there.

John Van Ostrand john at vanostrand.com
Sun Nov 2 18:52:27 PST 2014


---
 include/libdivecomputer/parser.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/libdivecomputer/parser.h b/include/libdivecomputer/parser.h
index 0f7021b..4c4a77c 100644
--- a/include/libdivecomputer/parser.h
+++ b/include/libdivecomputer/parser.h
@@ -93,6 +93,9 @@ typedef enum parser_sample_event_t {
 /* For backwards compatibility */
 #define SAMPLE_EVENT_UNKNOWN SAMPLE_EVENT_FLOOR
 
+/* For apps to determine new functionality */
+#define SAMPLE_EVENT_BATTERY 1
+
 typedef enum parser_sample_flags_t {
 	SAMPLE_FLAGS_NONE = 0,
 	SAMPLE_FLAGS_BEGIN = (1 << 0),
-- 
1.8.3.1



More information about the devel mailing list