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

Resolve suggested profiles for a device. More...

Include dependency graph for oxr_resolver_for_profiles.c:

Functions

static void log_resolver_info (struct oxr_sink_logger *slog, const struct oxr_profile_resolver_info *info)
 
static void fill_binding_profiles (struct oxr_sink_logger *slog, const struct oxr_binding_registry *registry, const struct oxr_suggested_profile *profile, const struct oxr_rebinding_profile *rebinding_profile, struct oxr_profile_resolver_info *info)
 
static bool try_resolve_with_device_name (struct oxr_sink_logger *slog, const struct oxr_binding_registry *registry, const struct oxr_suggested_profile_array *suggested_profiles, const struct xrt_io_cache_device *dev, XrPath subaction_path, enum xrt_device_name device_name, struct oxr_profile_resolver_info *info)
 
static bool try_resolve_with_xdev (struct oxr_sink_logger *slog, const struct oxr_binding_registry *registry, const struct oxr_suggested_profile_array *suggested_profiles, const struct xrt_io_cache_device *dev, XrPath subaction_path, struct oxr_profile_resolver_info *info)
 
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, const struct xrt_io_cache_device *dev, XrPath subaction_path, 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()

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,
const struct xrt_io_cache_device *  dev,
XrPath  subaction_path,
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.
devCache device to resolve for, must not be NULL.
subaction_pathTop-level path being resolved.
override_device_nameProfile name to prefer before dev->name, can be XRT_DEVICE_INVALID.
infoBinding information, must not be NULL.

References xrt_io_cache_device::name, and U_ZERO.