aboutsummaryrefslogtreecommitdiffstats
path: root/core/serial_usb_android.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/serial_usb_android.h')
-rw-r--r--core/serial_usb_android.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/serial_usb_android.h b/core/serial_usb_android.h
new file mode 100644
index 000000000..7283950b3
--- /dev/null
+++ b/core/serial_usb_android.h
@@ -0,0 +1,16 @@
+#ifndef SERIAL_USB_ANDROID_H
+#define SERIAL_USB_ANDROID_H
+
+#include <string>
+#include <vector>
+
+/* USB Device Information */
+struct android_usb_serial_device_descriptor {
+ QAndroidJniObject usbDevice; /* the UsbDevice */
+ std::string className; /* the driver class name. If empty, then "autodetect" */
+ std::string uiRepresentation; /* The string that can be used for the user interface. */
+};
+
+std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices(bool driverSelection);
+
+#endif