Commit 24d3dc45 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

xrt: Add interface to list cameras

parent f926f42a
......@@ -107,6 +107,16 @@ struct xrt_prober_device
enum xrt_bus_type bus;
* Callback for listing video devices.
* @ingroup xrt_iface
typedef void (*xrt_prober_list_video_cb)(struct xrt_prober *xp,
struct xrt_prober_device *pdev,
const char *name,
void *ptr);
* The main prober that probes and manages found but not opened HMD devices
* that are connected to the system.
......@@ -124,6 +134,9 @@ struct xrt_prober
struct xrt_prober_device *xpdev,
int interface,
struct os_hid_device **out_hid_dev);
int (*list_video_devices)(struct xrt_prober *xp,
xrt_prober_list_video_cb cb,
void *ptr);
void (*destroy)(struct xrt_prober **xp);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment