Monado OpenXR Runtime
|
Common things to pull into a target. More...
#include "xrt/xrt_config_drivers.h"
#include "target_lists.h"
#include "target_builder_interface.h"
#include "realsense/rs_interface.h"
Variables | |
xrt_builder_create_func_t | target_builder_list [] |
Builders. More... | |
struct xrt_prober_entry | target_entry_list [] |
Each entry should be a vendor ID (VID), product ID (PID), a "found" function, and a string literal name. More... | |
struct xrt_prober_entry * | target_entry_lists [] |
xrt_auto_prober_create_func_t | target_auto_list [] |
struct xrt_prober_entry_lists | target_lists |
Common things to pull into a target.
xrt_builder_create_func_t target_builder_list[] |
Builders.
struct xrt_prober_entry target_entry_list[] |
Each entry should be a vendor ID (VID), product ID (PID), a "found" function, and a string literal name.
The "found" function must return int
and take as parameters:
struct xrt_prober *xp
struct xrt_prober_device **devices
size_t index
struct xrt_device **out_xdevs
(an array of XRT_MAX_DEVICES_PER_PROBE xrt_device pointers)It is called when devices[index] match the VID and PID in the list. It should return 0 if it decides not to create any devices, negative on error, and the number of devices created if it creates one or more: it should assign sequential elements of out_xdevs to the created devices.
struct xrt_prober_entry* target_entry_lists[] |
struct xrt_prober_entry_lists target_lists |