mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:53:24 +00:00
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>
This commit is contained in:
parent
56bfa1b1be
commit
77621ef7df
1 changed files with 7 additions and 0 deletions
7
dive.h
7
dive.h
|
@ -233,6 +233,12 @@ void taglist_cleanup(struct tag_entry **tag_list);
|
||||||
void taglist_init_global();
|
void taglist_init_global();
|
||||||
void taglist_free(struct tag_entry *tag_list);
|
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
|
* NOTE! The deviceid and diveid are model-specific *hashes* of
|
||||||
* whatever device identification that model may have. Different
|
* whatever device identification that model may have. Different
|
||||||
|
@ -260,6 +266,7 @@ struct divecomputer {
|
||||||
int samples, alloc_samples;
|
int samples, alloc_samples;
|
||||||
struct sample *sample;
|
struct sample *sample;
|
||||||
struct event *events;
|
struct event *events;
|
||||||
|
struct extra_data *extra_data;
|
||||||
struct divecomputer *next;
|
struct divecomputer *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue