Expose simple API to select a single adb device

Select an adb device from the output of `adb device -l`.

PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005>
This commit is contained in:
Romain Vimont
2022-02-06 15:04:00 +01:00
parent 02d46b2262
commit 4692d13179
6 changed files with 186 additions and 22 deletions

View File

@@ -104,6 +104,8 @@ sc_adb_parse_device(char *line, struct sc_adb_device *device) {
device->model = NULL;
}
device->selected = false;
return true;
}