diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-06 10:32:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-06 22:00:25 -0800 |
commit | 77621ef7df1005a26d2701f22342d0d64e589708 (patch) | |
tree | 71e7a80160b51e7b365ec9989e910748430f8561 /dive.h | |
parent | 56bfa1b1be061cc292412ddc4da9b2e11160cbca (diff) | |
download | subsurface-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>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; }; |