diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-18 13:29:40 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-19 20:12:55 +0900 |
commit | 047032ee46ef00d924dea0ee68b0f2726975fcd6 (patch) | |
tree | b3a8c1120e2bc873e6996842fba7a820a7a0c282 /display.h | |
parent | 6d42a99e7f6d3ea3a9c977604c7cc980a4215f18 (diff) | |
download | subsurface-047032ee46ef00d924dea0ee68b0f2726975fcd6.tar.gz |
Divecomputer download: try to offer only those devices that make sense
If the user selects a Uemis divecomputer, don't show serial devices.
If the user selects a serial divecomputer, don't show the Uemis
filesystem.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -55,7 +55,12 @@ extern int is_default_dive_computer_device(const char *); extern int is_default_dive_computer(const char *, const char *); typedef void (*device_callback_t)(const char *name, void *userdata); -int enumerate_devices(device_callback_t callback, void *userdata); + +#define DC_TYPE_SERIAL 1 +#define DC_TYPE_UEMIS 2 +#define DC_TYPE_OTHER 3 + +int enumerate_devices(device_callback_t callback, void *userdata, int dc_type); extern const char *default_dive_computer_vendor; extern const char *default_dive_computer_product; |