Imrpove the nickname handling

We now store the model information together with the deviceid and nickname
in order to be able to check if we have a record for any dive computer
with the same model (as that now triggers our nickname dialog).

This changes the format of the config entries for nicknames - the best
solution might be to just delete those and start again.

What is still missing is the code to store the nicknames in the XML file.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-12-21 21:00:06 -08:00
parent 8d2abc05f6
commit 50aa6d1afa
3 changed files with 124 additions and 52 deletions

2
dive.h
View file

@ -529,7 +529,7 @@ 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 *nickname, gboolean change_conf);
extern void remember_dc(uint32_t deviceid, const char *model, const char *nickname, gboolean change_conf);
#define DIVE_ERROR_PARSE 1