Add DeviceType to Info and a filter function for it

* Add DeviceType to Info
* Update adapters to also register its device type
* Add FilterDeviceType
This commit is contained in:
Lukas Herman
2020-02-13 20:53:36 -08:00
parent 46c55deeb4
commit 504b542376
6 changed files with 29 additions and 4 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ func init() {
for _, device := range devices {
cam := newCamera(searchPath + device.Name())
driver.GetManager().Register(cam, driver.Info{
Label: device.Name(),
Label: device.Name(),
DeviceType: driver.Camera,
})
}
}