mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6d42a99e7f
commit
047032ee46
7 changed files with 178 additions and 111 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue