Monado OpenXR Runtime
|
Sets up a collection of devices and builds a system, a setter upper. More...
#include <xrt/xrt_prober.h>
Static Public Member Functions | |
static xrt_result_t | xrt_builder_estimate_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *out_estimate) |
From the devices found, estimate without opening the devices how good the system will be. More... | |
static xrt_result_t | xrt_builder_open_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso) |
We are now committed to opening these devices. More... | |
static void | xrt_builder_destroy (struct xrt_builder **xb_ptr) |
Destroy this setter upper. More... | |
Data Fields | |
const char * | identifier |
Short identifier, like "vive", "north_star", "rgb_tracking". More... | |
const char * | name |
"Localized" pretty name. More... | |
const char ** | driver_identifiers |
List of identifiers for drivers this setter-upper uses/supports. More... | |
size_t | driver_identifier_count |
Number of driver identifiers. More... | |
bool | exclude_from_automatic_discovery |
Should this builder be excluded from automatic discovery. More... | |
xrt_result_t(* | estimate_system )(struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *out_estimate) |
From the devices found, estimate without opening the devices how good the system will be. More... | |
xrt_result_t(* | open_system )(struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso) |
We are now committed to opening these devices. More... | |
void(* | destroy )(struct xrt_builder *xb) |
Destroy this setter upper. More... | |
Sets up a collection of devices and builds a system, a setter upper.
|
inlinestatic |
Destroy this setter upper.
Helper for calling through the function pointer: does a null check and sets xb_ptr to null if freed.
References destroy.
|
inlinestatic |
From the devices found, estimate without opening the devices how good the system will be.
[in] | xb | Builder self parameter. |
[in] | xp | Prober |
[in] | config | JSON config object if found for this setter upper. |
[out] | out_estimate | Estimate to be filled out. |
Helper function for xrt_builder::estimate_system.
References estimate_system.
|
inlinestatic |
We are now committed to opening these devices.
[in] | xb | Builder self parameter. |
[in] | xp | Prober |
[in] | config | JSON config object if found for this setter upper. |
[in] | broadcast | Event sink that broadcasts events to all sessions. |
[out] | out_xsysd | Return of system devices, the pointed pointer must be NULL. |
[out] | out_xso | Return of the xrt_space_overseer, the pointed pointer must be NULL. |
Helper function for xrt_builder::open_system.
References open_system.
void(* xrt_builder::destroy) (struct xrt_builder *xb) |
Destroy this setter upper.
Referenced by xrt_builder_destroy().
size_t xrt_builder::driver_identifier_count |
Number of driver identifiers.
const char** xrt_builder::driver_identifiers |
List of identifiers for drivers this setter-upper uses/supports.
xrt_result_t(* xrt_builder::estimate_system) (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *out_estimate) |
From the devices found, estimate without opening the devices how good the system will be.
[in] | xb | Builder self parameter. |
[in] | xp | Prober |
[in] | config | JSON config object if found for this setter upper. |
[out] | out_estimate | Estimate to be filled out. |
Referenced by rift_s_builder_create(), t_builder_legacy_create(), t_builder_lighthouse_create(), t_builder_north_star_create(), t_builder_qwerty_create(), t_builder_remote_create(), t_builder_rgb_tracking_create(), t_builder_simula_create(), t_builder_simulated_create(), t_builder_steamvr_create(), t_builder_wmr_create(), xreal_air_builder_create(), and xrt_builder_estimate_system().
bool xrt_builder::exclude_from_automatic_discovery |
Should this builder be excluded from automatic discovery.
const char* xrt_builder::identifier |
Short identifier, like "vive", "north_star", "rgb_tracking".
const char* xrt_builder::name |
"Localized" pretty name.
Referenced by ipcproto.common.Arg::__init__(), ipcproto.common.Call::__init__(), bindings.Profile::__init__(), ipcproto.common.Arg::dump(), ipcproto.common.Call::dump(), ipcproto.common.Arg::get_func_argument_in(), ipcproto.common.Arg::get_func_argument_out(), ipcproto.common.Arg::get_struct_field(), ipcproto.common.Call::write_call_decl(), ipcproto.common.Call::write_handler_decl(), ipcproto.common.Call::write_receive_decl(), and ipcproto.common.Call::write_send_decl().
xrt_result_t(* xrt_builder::open_system) (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_session_event_sink *broadcast, struct xrt_system_devices **out_xsysd, struct xrt_space_overseer **out_xso) |
We are now committed to opening these devices.
[in] | xb | Builder self parameter. |
[in] | xp | Prober |
[in] | config | JSON config object if found for this setter upper. |
[in] | broadcast | Event sink that broadcasts events to all sessions. |
[out] | out_xsysd | Return of system devices, the pointed pointer must be NULL. |
[out] | out_xso | Return of the xrt_space_overseer, the pointed pointer must be NULL. |
Referenced by xrt_builder_open_system().