mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make device enumeration use the device transport data
This removes some special-case code for Uemis, replacing it with simply passing in the device transport information. This makes device enumeration work for the Garmin Descent (if it is listed by libdivecomputer as a USB storage device, that is). I don't actually do any of the libdivecomputer parsing yet, and only have a stub for the Garmin Descent, but now the directory selection works with that stub. The actual download obviously does not. [Dirk Hohndel: removed obsolete FIXME from code] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bb067b6ee4
commit
270e9eccad
13 changed files with 40 additions and 33 deletions
|
@ -2,6 +2,8 @@
|
|||
#ifndef DISPLAY_H
|
||||
#define DISPLAY_H
|
||||
|
||||
#include "libdivecomputer.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -44,11 +46,7 @@ extern int is_default_dive_computer(const char *, const char *);
|
|||
|
||||
typedef void (*device_callback_t)(const char *name, 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);
|
||||
int enumerate_devices(device_callback_t callback, void *userdata, unsigned int transport);
|
||||
|
||||
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