Monado OpenXR Runtime
u_prober.h
Go to the documentation of this file.
1// Copyright 2019-2022, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Helpers for prober related code.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @ingroup aux_util
8 */
9
10#pragma once
11
12#include "xrt/xrt_prober.h"
13
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20/*!
21 * Helper to match various strings of an xrt_prober_device to
22 * @public @memberof xrt_prober
23 */
24bool
26 struct xrt_prober_device *dev,
27 enum xrt_prober_string type,
28 const char *to_match);
29
30const char *
31u_prober_string_to_string(enum xrt_prober_string t);
32
33const char *
34u_prober_bus_type_to_string(enum xrt_bus_type t);
35
36bool
38 struct xrt_prober_device *dev,
39 enum xrt_prober_string type,
40 const char *to_match);
41
42
43#ifdef __cplusplus
44}
45#endif
A probed device, may or may not be opened.
Definition: xrt_prober.h:85
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:132
bool u_prober_match_string(struct xrt_prober *xp, struct xrt_prober_device *dev, enum xrt_prober_string type, const char *to_match)
Helper to match various strings of an xrt_prober_device to.
Definition: u_prober.c:57
Common interface to probe for devices.
xrt_prober_string
String descriptor types.
Definition: xrt_prober.h:73
xrt_bus_type
Bus type of a device.
Definition: xrt_prober.h:63