summaryrefslogtreecommitdiffstats
path: root/core/serial_usb_android.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-14 18:11:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commitec3a968df9d8fc706fedb788959631e2ed84e04b (patch)
treeaaa56de98ae2a861aef1d9bc2ab78fe05f06f745 /core/serial_usb_android.h
parent1495aa2dbf5366cc135c1ceb959c6a12abbb3e0b (diff)
downloadsubsurface-ec3a968df9d8fc706fedb788959631e2ed84e04b.tar.gz
android/usb: pass in the UsbDevice when downloading
This finally allows us to download from not just the first device, but specifically the device that the user picks. Passing the object through a void pointer is not nice - but since this traverses C code other solutions (like passing an index into the list) seemed even worse. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/serial_usb_android.h')
-rw-r--r--core/serial_usb_android.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/serial_usb_android.h b/core/serial_usb_android.h
index 37083c7cf..578fb1a9e 100644
--- a/core/serial_usb_android.h
+++ b/core/serial_usb_android.h
@@ -19,6 +19,7 @@ struct android_usb_serial_device_descriptor {
uint16_t vid;
};
-std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices(bool driverSelection);
+std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices();
+android_usb_serial_device_descriptor getDescriptor(QAndroidJniObject usbDevice);
#endif