duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
device.h
Go to the documentation of this file.
1#pragma once
2
9#include <functional>
10#include <vector>
11
12namespace duvc {
13
19std::vector<Device> list_devices();
20
29bool is_device_connected(const Device &dev);
30
58Device find_device_by_path(const std::wstring &device_path);
59
66 std::function<void(bool added, const std::wstring &device_path)>;
67
76
83
84} // namespace duvc
Definition core.h:13
std::vector< Device > list_devices()
Enumerate all available video input devices.
Definition core.cpp:626
void unregister_device_change_callback()
Unregister device change callback.
Definition core.cpp:537
bool is_device_connected(const Device &dev)
Check if a device is currently connected and accessible.
Definition core.cpp:549
void register_device_change_callback(DeviceChangeCallback callback)
Register callback for device hotplug events.
Definition core.cpp:511
std::function< void(bool device_added, const std::wstring &device_path)> DeviceChangeCallback
Device change callback function type.
Definition core.h:34
Device find_device_by_path(const std::wstring &device_path)
Find device by unique Windows device path.
Definition device.cpp:211
Core data types and enumerations for duvc-ctl.