aboutsummaryrefslogtreecommitdiffstats
path: root/core/serial_usb_android.h
blob: f2c1247121181f6e753fa361124dcd144b8e4368 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 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