|
Monado OpenXR Runtime
|
Holds suggested profile array related functions. More...
#include "xrt/xrt_compiler.h"#include "xrt/xrt_device.h"#include "oxr_extension_support.h"#include "oxr_forward_declarations.h"#include "oxr_suggested_profile.h"
Go to the source code of this file.
Data Structures | |
| struct | oxr_suggested_profile_array |
| Manages an array of suggested profiles, does not have a init function but must be zero initialized where it is declared. More... | |
Functions | |
| XRT_NONNULL_ALL bool | oxr_suggested_profile_array_find_by_device_name (const struct oxr_suggested_profile_array *array, enum xrt_device_name name, struct oxr_suggested_profile **out_p) |
| Find a suggested profile by the XRT device name stored on its profile template. | |
| XRT_NONNULL_ALL bool | oxr_suggested_profile_array_find_rebinding_for_device_name (const struct oxr_suggested_profile_array *array, const struct oxr_binding_registry *registry, enum xrt_device_name target_device_name, struct oxr_suggested_profile **out_p, const struct oxr_rebinding_profile **out_rebinding) |
Find the first rebinding profile that targets target_device_name and has a suggested source profile in array. | |
Holds suggested profile array related functions.
| XRT_NONNULL_ALL bool oxr_suggested_profile_array_find_by_device_name | ( | const struct oxr_suggested_profile_array * | array, |
| enum xrt_device_name | name, | ||
| struct oxr_suggested_profile ** | out_p | ||
| ) |
Find a suggested profile by the XRT device name stored on its profile template.
This directly compares name against each suggested profile's generated template.
| array | Suggested profile array to search, must not be NULL | |
| name | XRT device name stored on the profile template | |
| [out] | out_p | Found suggested profile; NULL if not found. Must not be NULL. |
References oxr_suggested_profile::templ.
| XRT_NONNULL_ALL bool oxr_suggested_profile_array_find_rebinding_for_device_name | ( | const struct oxr_suggested_profile_array * | array, |
| const struct oxr_binding_registry * | registry, | ||
| enum xrt_device_name | target_device_name, | ||
| struct oxr_suggested_profile ** | out_p, | ||
| const struct oxr_rebinding_profile ** | out_rebinding | ||
| ) |
Find the first rebinding profile that targets target_device_name and has a suggested source profile in array.
The helper walks the registry's generated rebinding profiles in registry order. This lets template generation decide priority: higher-priority rebindings, such as generic controller rebindings, should be emitted earlier. For each matching rebinding target device, the helper looks for a suggested profile with the rebinding source profile path.
| array | Suggested profile array to search, must not be NULL | |
| registry | Binding registry whose rebinding profiles are walked, must not be NULL | |
| target_device_name | Device name the rebinding profile must target | |
| [out] | out_p | Suggested source profile, or NULL if not found |
| [out] | out_rebinding | Matching rebinding profile, or NULL if not found |
References oxr_binding_profile::device_name, oxr_binding_registry::rebindings, oxr_binding_profile::registry, oxr_rebinding_profile::source_profile_path, and oxr_rebinding_profile::target_profile_path.