From 270e9eccad8644352f5ae07df8b6acb55b115361 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 27 Aug 2018 10:32:14 -0700 Subject: 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 Signed-off-by: Dirk Hohndel --- core/libdivecomputer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/libdivecomputer.h') diff --git a/core/libdivecomputer.h b/core/libdivecomputer.h index b1714f2a1..050834195 100644 --- a/core/libdivecomputer.h +++ b/core/libdivecomputer.h @@ -12,6 +12,11 @@ #include #include +// Even if we have an old libdivecomputer, Uemis uses this +#ifndef DC_TRANSPORT_USBSTORAGE +#define DC_TRANSPORT_USBSTORAGE (1 << 6) +#endif + #include "dive.h" #ifdef __cplusplus -- cgit v1.2.3-70-g09d2