summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2018-08-27 11:19:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-27 22:11:05 -0700
commit80fe8fb331edd494ba53efb0879eb9d53031216e (patch)
tree714e80cb66f22aabfa9d31676410f11e0195079f /core/libdivecomputer.h
parent270e9eccad8644352f5ae07df8b6acb55b115361 (diff)
downloadsubsurface-80fe8fb331edd494ba53efb0879eb9d53031216e.tar.gz
Add support for opening a DC_TRANSPORT_USBSTORAGE stream
This is part of the whole "let's support the notion of dive computers being exported as USB storage devices" push. With an older libdivecomputer, we'll just fall back on failing the operation, but we still want to support the generic notion of DC_TRANSPORT_USBSTORAGE since we have our own internal Uemis downloader. That one won't ever get to the open phase, since it's caught earlier. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/libdivecomputer.h')
-rw-r--r--core/libdivecomputer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/libdivecomputer.h b/core/libdivecomputer.h
index 050834195..e1964eb9a 100644
--- a/core/libdivecomputer.h
+++ b/core/libdivecomputer.h
@@ -15,6 +15,7 @@
// Even if we have an old libdivecomputer, Uemis uses this
#ifndef DC_TRANSPORT_USBSTORAGE
#define DC_TRANSPORT_USBSTORAGE (1 << 6)
+#define dc_usb_storage_open(stream, context, devname) (DC_STATUS_UNSUPPORTED)
#endif
#include "dive.h"