From 77621ef7df1005a26d2701f22342d0d64e589708 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Nov 2014 10:32:48 -0800 Subject: Add list of string pairs to dive structure This extra_data is designed to hold unstructured data from the dive computer. Things like battery voltage. Deco algorithm. Whatever the dive computer wants to report to us. Signed-off-by: Dirk Hohndel --- dive.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dive.h') diff --git a/dive.h b/dive.h index b78b0bbd0..71275a244 100644 --- a/dive.h +++ b/dive.h @@ -233,6 +233,12 @@ void taglist_cleanup(struct tag_entry **tag_list); void taglist_init_global(); void taglist_free(struct tag_entry *tag_list); +struct extra_data { + const char *key; + const char *value; + struct extra_data *next; +}; + /* * NOTE! The deviceid and diveid are model-specific *hashes* of * whatever device identification that model may have. Different @@ -260,6 +266,7 @@ struct divecomputer { int samples, alloc_samples; struct sample *sample; struct event *events; + struct extra_data *extra_data; struct divecomputer *next; }; -- cgit v1.2.3-70-g09d2