subsurface/core/serial_usb_android.h
Dirk Hohndel c2077992ff android/usb: guess the actual manufacturer and product
For a small number of dive computers we can actually figure out the
real information which we can then later show to the user.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-03-16 07:58:20 -07:00

24 lines
665 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(bool driverSelection);
#endif