The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/vive: Create common header for controller and hmd.

+26 -14
+25
src/xrt/drivers/vive/vive.h
··· 1 + // Copyright 2016-2019, Philipp Zabel 2 + // Copyright 2019, Collabora, Ltd. 3 + // SPDX-License-Identifier: BSL-1.0 4 + /*! 5 + * @file 6 + * @brief Common vive header 7 + * @author Lubosz Sarnecki <lubosz.sarnecki@collabora.com> 8 + * @ingroup drv_vive 9 + */ 10 + 11 + #pragma once 12 + 13 + /* 14 + * 15 + * Printing functions. 16 + * 17 + */ 18 + 19 + // clang-format off 20 + #define VIVE_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->ll, __VA_ARGS__) 21 + #define VIVE_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->ll, __VA_ARGS__) 22 + #define VIVE_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->ll, __VA_ARGS__) 23 + #define VIVE_WARN(d, ...) U_LOG_XDEV_IFL_W(&d->base, d->ll, __VA_ARGS__) 24 + #define VIVE_ERROR(d, ...) U_LOG_XDEV_IFL_E(&d->base, d->ll, __VA_ARGS__) 25 + // clang-format on
+1
src/xrt/drivers/vive/vive_device.c
··· 23 23 #include "os/os_hid.h" 24 24 #include "os/os_time.h" 25 25 26 + #include "vive.h" 26 27 #include "vive_device.h" 27 28 #include "vive_protocol.h" 28 29 #include "vive_config.h"
-14
src/xrt/drivers/vive/vive_device.h
··· 141 141 struct os_hid_device *sensors_dev, 142 142 enum VIVE_VARIANT variant); 143 143 144 - /* 145 - * 146 - * Printing functions. 147 - * 148 - */ 149 - 150 - // clang-format off 151 - #define VIVE_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->ll, __VA_ARGS__) 152 - #define VIVE_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->ll, __VA_ARGS__) 153 - #define VIVE_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->ll, __VA_ARGS__) 154 - #define VIVE_WARN(d, ...) U_LOG_XDEV_IFL_W(&d->base, d->ll, __VA_ARGS__) 155 - #define VIVE_ERROR(d, ...) U_LOG_XDEV_IFL_E(&d->base, d->ll, __VA_ARGS__) 156 - // clang-format on 157 - 158 144 #ifdef __cplusplus 159 145 } 160 146 #endif