From 047032ee46ef00d924dea0ee68b0f2726975fcd6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 18 May 2014 13:29:40 +0900 Subject: 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 --- display.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'display.h') diff --git a/display.h b/display.h index 65820f075..08c63da04 100644 --- a/display.h +++ b/display.h @@ -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; -- cgit v1.2.3-70-g09d2