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

@@ -236,6 +236,8 @@ typedef struct CS_UsbCameraInfo {
char* name;
int otherPathsCount;
char** otherPaths;
int vendorId;
int productId;
} CS_UsbCameraInfo;
/**

View File

@@ -56,6 +56,10 @@ struct UsbCameraInfo {
std::string name;
/** Other path aliases to device (e.g. '/dev/v4l/by-id/...' etc on Linux) */
std::vector<std::string> otherPaths;
/** USB Vendor Id */
int vendorId = -1;
/** USB Product Id */
int productId = -1;
};
/**