Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_system_devices.h
Go to the documentation of this file.
1// Copyright 2026, Beyley Cardellio
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Misc helpers for xrt_system_devices implementations
6 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
7 * @ingroup aux_util
8 */
9
10#pragma once
11
12#include "xrt/xrt_system.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20/*!
21 * Function pointer type for the system devices' get_roles function.
22 *
23 * @ingroup aux_util
24 */
26 struct xrt_system_roles *out_roles);
27
28/*!
29 * Function pointer type for the system devices' destroy function.
30 *
31 * @ingroup aux_util
32 */
34
35void
36u_system_devices_populate_function_pointers(struct xrt_system_devices *xsysd,
39
40
41#ifdef __cplusplus
42}
43#endif
xrt_result_t(* u_system_devices_get_roles_function_t)(struct xrt_system_devices *xsysd, struct xrt_system_roles *out_roles)
Function pointer type for the system devices' get_roles function.
Definition u_system_devices.h:25
void(* u_system_devices_destroy_function_t)(struct xrt_system_devices *xsysd)
Function pointer type for the system devices' destroy function.
Definition u_system_devices.h:33
enum xrt_result xrt_result_t
Result type used across Monado.
A collection of xrt_device, and an interface for identifying the roles they have been assigned.
Definition xrt_system.h:215
Data associating a device index (in xrt_system_devices::static_xdevs) with a given "role" for dynamic...
Definition xrt_system.h:155
Header for system objects.