summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-06 10:32:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-06 22:00:25 -0800
commit77621ef7df1005a26d2701f22342d0d64e589708 (patch)
tree71e7a80160b51e7b365ec9989e910748430f8561
parent56bfa1b1be061cc292412ddc4da9b2e11160cbca (diff)
downloadsubsurface-77621ef7df1005a26d2701f22342d0d64e589708.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--dive.h7
1 files changed, 7 insertions, 0 deletions
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;
};