diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-26 13:47:54 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-26 16:46:21 -0800 |
commit | e726c9d65c7d1f1b8dbe238819b4d2847b8a058d (patch) | |
tree | 4bfd79efd17829879abff84d9b1b05cbb1e3e1a1 /dive.h | |
parent | 1bd6f72d3191fc8f68acc9b44099e5705293db59 (diff) | |
download | subsurface-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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |