CameraServer: Add VID/PID support for Linux USB devices (#1960)

This commit is contained in:
Peter Johnson
2019-10-20 14:12:00 -07:00
committed by GitHub
parent 3fc89c84d6
commit c59f9cea5f
6 changed files with 90 additions and 33 deletions

View File

@@ -21,6 +21,8 @@ static void ConvertToC(CS_UsbCameraInfo* out, const UsbCameraInfo& in) {
out->otherPathsCount = in.otherPaths.size();
for (size_t i = 0; i < in.otherPaths.size(); ++i)
out->otherPaths[i] = cs::ConvertToC(in.otherPaths[i]);
out->vendorId = in.vendorId;
out->productId = in.productId;
}
static void FreeUsbCameraInfo(CS_UsbCameraInfo* info) {