List and select USB devices separately

List all USB devices in a first step, then select the matching one(s).

This allows to report a user-friendly log message containing the list of
devices, with the matching one(s) highlighted.

PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005>
This commit is contained in:
Romain Vimont
2022-02-05 19:34:45 +01:00
parent 61969aeb80
commit 700503df6c
2 changed files with 72 additions and 33 deletions

View File

@@ -35,6 +35,7 @@ struct sc_usb_device {
char *product;
uint16_t vid;
uint16_t pid;
bool selected;
};
void