summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 13:47:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-26 16:46:21 -0800
commite726c9d65c7d1f1b8dbe238819b4d2847b8a058d (patch)
tree4bfd79efd17829879abff84d9b1b05cbb1e3e1a1 /dive.h
parent1bd6f72d3191fc8f68acc9b44099e5705293db59 (diff)
downloadsubsurface-e726c9d65c7d1f1b8dbe238819b4d2847b8a058d.tar.gz
Add settings section to XML file format and store dive computer IDs
We only store the model/deviceid/nickname for those dive computers that are mentioned in the XML file. This should make the XML files nicely selfcontained. This also changes the code to consistently use model & deviceid to identify a dive computer. The deviceid is NOT guaranteed to be collision free between different libdivecomputer backends... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dive.h b/dive.h
index 32b7e0027..b77a08468 100644
--- a/dive.h
+++ b/dive.h
@@ -528,8 +528,9 @@ extern void dive_list_update_dives(void);
extern void flush_divelist(struct dive *dive);
extern void set_dc_nickname(struct dive *dive);
-extern const char *get_dc_nickname(uint32_t deviceid);
-extern void remember_dc(uint32_t deviceid, const char *model, const char *nickname, gboolean change_conf);
+extern const char *get_dc_nickname(const char *model, uint32_t deviceid);
+extern void remember_dc(const char *model, uint32_t deviceid, const char *nickname, gboolean change_conf);
+extern void add_dc_to_string(char **dc_xml, struct divecomputer *dc);
#define DIVE_ERROR_PARSE 1