Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_resolver_for_profiles.h File Reference

Resolve suggested profiles for a device. More...

#include "xrt/xrt_defines.h"
#include "oxr_extension_support.h"
#include "oxr_forward_declarations.h"
#include "oxr_suggested_profile_array.h"
Include dependency graph for oxr_resolver_for_profiles.h:

Go to the source code of this file.

Data Structures

struct  oxr_profile_resolver_info
 Short-lived result of choosing a suggested profile for one subaction slot (for example /user/hand/left), plus any rebinding or device fallback needed to apply it. More...
 

Functions

XRT_NONNULL_ALL void oxr_resolver_populate_profile (struct oxr_logger *log, struct oxr_sink_logger *slog, const struct oxr_binding_registry *registry, const struct oxr_suggested_profile_array *suggested_profiles, struct xrt_device *xdev, enum xrt_device_name override_device_name, struct oxr_profile_resolver_info *info)
 Resolve the binding information for a given device.
 

Detailed Description

Resolve suggested profiles for a device.

Function Documentation

◆ oxr_resolver_populate_profile()

XRT_NONNULL_ALL void oxr_resolver_populate_profile ( struct oxr_logger *  log,
struct oxr_sink_logger *  slog,
const struct oxr_binding_registry *  registry,
const struct oxr_suggested_profile_array *  suggested_profiles,
struct xrt_device *  xdev,
enum xrt_device_name  override_device_name,
struct oxr_profile_resolver_info *  info 
)

Resolve the binding information for a given device.

Parameters
logLogger, must not be NULL.
slogSink logger, must not be NULL.
registryBinding registry, must not be NULL.
suggested_profilesSuggested profiles, must not be NULL.
xdevDevice, must not be NULL.
override_device_nameProfile name to prefer before xdev->name, can be XRT_DEVICE_INVALID.
infoBinding information, must not be NULL.

References xrt_device::name, and U_ZERO.