From a0904fc4d12e6d776fb5c2c0e3b62569b04a540f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Salvador=20Cu=C3=B1at?= <salvador.cunat@gmail.com>
Date: Fri, 3 Apr 2015 21:02:55 +0200
Subject: [PATCH] Add dc_descriptor_t structure
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 libdivecomputer.h | 7 +++++++
 1 file changed, 7 insertions(+)

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