summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-24 11:42:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-24 12:59:31 -0800
commit52050fdc921bc6404ae637eee6169b684f62c244 (patch)
tree7c75c55c5cd897a5ad544e110844c5ec30a133e9 /device.h
parent9acb52b9ee01e4f10bfab1462f2cf65505f9e054 (diff)
downloadsubsurface-52050fdc921bc6404ae637eee6169b684f62c244.tar.gz
Save all dive computer nicknames - whether used or not
We used to save dive computer information only if that dive computer was actually used in any of the dives we saved. But we can simplify the code if we just always save any dive computers we know about. And it does allow for some usage cases where you have nicknames for other peoples computers that you may not actively use, but you want to see if you end up loading multiple XML files in one go. So there's just no compelling reason to not just save all the info we have. And this will make it less painful to remove the "use system config for dive computer nicknames", because you can also use this to continue to gather dive computer info in a separate XML file if you want to. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'device.h')
-rw-r--r--device.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/device.h b/device.h
index 31e4a74f9..8a306ef78 100644
--- a/device.h
+++ b/device.h
@@ -9,14 +9,12 @@ struct device_info {
const char *firmware;
const char *nickname;
struct device_info *next;
- gboolean saved;
};
extern struct device_info *get_device_info(const char *model, uint32_t deviceid);
extern struct device_info *get_different_device_info(const char *model, uint32_t deviceid);
extern struct device_info *create_device_info(const char *model, uint32_t deviceid);
extern struct device_info *remove_device_info(const char *model, uint32_t deviceid);
-extern void clear_device_saved_status(void);
extern struct device_info *head_of_device_info_list(void);
#endif