diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2015-04-03 21:02:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-04 10:27:09 -0700 |
commit | a0904fc4d12e6d776fb5c2c0e3b62569b04a540f (patch) | |
tree | 50657cf31e9d9fa8602514ee1253007a25c649f9 | |
parent | 004fa9a26bfe902238589de49a787821ffb4946e (diff) | |
download | subsurface-a0904fc4d12e6d776fb5c2c0e3b62569b04a540f.tar.gz |
Add dc_descriptor_t structure
While downloading from DC the user sets the vendor and model. In
imports, this is not possible. The parser has to figure out somehow at
least the dive computer model used in a dive basis, as it can even change
over time, and a log file can include several different models.
We will use this structure in import tasks to ensure that data
passed to libdc are consistent with what it expects to find.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | libdivecomputer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdivecomputer.h b/libdivecomputer.h index 91548bac3..eaaa998bc 100644 --- a/libdivecomputer.h +++ b/libdivecomputer.h @@ -13,6 +13,13 @@ extern "C" { #endif +struct dc_descriptor_t { + const char *vendor; + const char *product; + dc_family_t type; + unsigned int model; +}; + /* don't forget to include the UI toolkit specific display-XXX.h first to get the definition of progressbar_t */ typedef struct device_data_t |