mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Move ExtCtrlIoctl to UsbCameraProperty::DeviceQuery.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#ifndef CS_USBCAMERAPROPERTY_H_
|
||||
#define CS_USBCAMERAPROPERTY_H_
|
||||
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#ifdef __linux__
|
||||
@@ -45,6 +46,8 @@ class UsbCameraProperty : public PropertyImpl {
|
||||
#endif
|
||||
UsbCameraProperty(const struct v4l2_queryctrl& ctrl);
|
||||
|
||||
static std::unique_ptr<UsbCameraProperty> DeviceQuery(int fd, __u32* id);
|
||||
|
||||
bool DeviceGet(std::unique_lock<std::mutex>& lock, int fd);
|
||||
bool DeviceSet(std::unique_lock<std::mutex>& lock, int fd) const;
|
||||
bool DeviceSet(std::unique_lock<std::mutex>& lock, int fd, int newValue,
|
||||
|
||||
Reference in New Issue
Block a user