Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_device_id.h
Go to the documentation of this file.
1// Copyright 2026, NVIDIA CORPORATION.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Generator for per-process unique @ref xrt_device_id values.
6 * @author Jakob Bornecrantz <tbornecrantz@nvidia.com>
7 * @ingroup aux_util
8 */
9
10#pragma once
11
12#include "xrt/xrt_device.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20/*!
21 * Generate a new per-process unique device ID.
22 *
23 * @ingroup aux_util
24 */
25struct xrt_device_id
27
28/*!
29 * Assign a newly generated ID to the given device.
30 *
31 * @ingroup aux_util
32 */
33void
34u_device_id_assign(struct xrt_device *xdev);
35
36
37#ifdef __cplusplus
38}
39#endif
struct xrt_device_id u_device_id_generate(void)
Generate a new per-process unique device ID.
Definition u_device_id.c:15
void u_device_id_assign(struct xrt_device *xdev)
Assign a newly generated ID to the given device.
Definition u_device_id.c:31
A unique identifier for an xrt_device instance.
Definition xrt_device.h:47
A single HMD or input device.
Definition xrt_device.h:340
Header defining an xrt display or controller device.