mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
ec3a968df9
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>
25 lines
726 B
C++
25 lines
726 B
C++
#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. */
|
|
|
|
// Device information
|
|
std::string usbManufacturer;
|
|
std::string usbProduct;
|
|
std::string manufacturer;
|
|
std::string product;
|
|
uint16_t pid;
|
|
uint16_t vid;
|
|
};
|
|
|
|
std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices();
|
|
android_usb_serial_device_descriptor getDescriptor(QAndroidJniObject usbDevice);
|
|
|
|
#endif
|