Monado OpenXR Runtime
vive_prober.h
Go to the documentation of this file.
1// Copyright 2019, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface to @ref drv_vive.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @author Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
8 * @ingroup drv_vive
9 */
10
11#pragma once
12
13#include <stdlib.h>
14
15#include "xrt/xrt_prober.h"
16
17#include "vive_device.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
24/*!
25 * @defgroup drv_vive HTC Vive and Valve Index driver
26 * @ingroup drv
27 *
28 * @brief Driver for the HTC Vive and Valve Index family of HMDs.
29 */
30
31/*!
32 * Probing function for Vive devices.
33 *
34 * @ingroup drv_vive
35 * @see xrt_prober_found_func_t
36 */
37int
38vive_found(struct xrt_prober *xp,
39 struct xrt_prober_device **devices,
40 size_t device_count,
41 size_t index,
42 cJSON *attached_data,
43 struct vive_tracking_status tstatus,
44 struct vive_source *vs,
45 struct vive_config **out_vive_config,
46 struct xrt_device **out_xdev);
47
48
49/*!
50 * Probing function for HTC Vive and Valve Index controllers.
51 *
52 * @ingroup drv_vive
53 * @see xrt_prober_found_func_t
54 */
55int
57 struct xrt_prober_device **devices,
58 size_t device_count,
59 size_t index,
60 cJSON *attached_data,
61 struct xrt_device **out_xdevs);
62
63/*!
64 * @dir drivers/vive
65 *
66 * @brief @ref drv_vive files.
67 */
68
69
70#ifdef __cplusplus
71}
72#endif
int vive_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_config **out_vive_config, struct xrt_device **out_xdev)
Probing function for Vive devices.
Definition: vive_prober.c:348
int vive_controller_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdevs)
Probing function for HTC Vive and Valve Index controllers.
Definition: vive_prober.c:405
headset config.
Definition: vive_config.h:143
Manages the data streaming state related to a vive headset.
Definition: vive_source.c:31
Summary of the status of various trackers.
Definition: vive_device.h:132
A single HMD or input device.
Definition: xrt_device.h:241
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
vive device header
Common interface to probe for devices.