The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: Move xr_action_type_to_str to oxr_objects.h

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2431>

authored by

Christoph Haag and committed by
Marge Bot
ca3217dd 4631ac20

+15 -15
+1
src/xrt/include/xrt/xrt_openxr_includes.h
··· 62 62 #include "openxr/openxr.h" // IWYU pragma: export 63 63 #include "openxr/openxr_platform.h" // IWYU pragma: export 64 64 #include "openxr/openxr_loader_negotiation.h" // IWYU pragma: export 65 + #include "openxr/openxr_reflection.h" // IWYU pragma: export 65 66 66 67 #include "openxr/XR_MNDX_hydra.h" 67 68 #include "openxr/XR_MNDX_xdev_space.h"
-15
src/xrt/state_trackers/oxr/oxr_input_transform.c
··· 17 17 18 18 #include "util/u_misc.h" 19 19 20 - #include "openxr/openxr_reflection.h" 21 20 22 21 #include <string.h> 23 22 #include <assert.h> 24 23 25 - 26 - static const char * 27 - xr_action_type_to_str(XrActionType type) 28 - { 29 - // clang-format off 30 - switch (type) { 31 - #define PRINT(name, value) \ 32 - case name: return #name; 33 - XR_LIST_ENUM_XrActionType(PRINT) 34 - #undef PRINT 35 - default: return "XR_ACTION_TYPE_UNKNOWN"; 36 - } 37 - // clang-format on 38 - } 39 24 40 25 /*! 41 26 * Arbitrary but larger than required.
+14
src/xrt/state_trackers/oxr/oxr_objects.h
··· 177 177 } while (false) 178 178 179 179 180 + static inline const char * 181 + xr_action_type_to_str(XrActionType type) 182 + { 183 + // clang-format off 184 + switch (type) { 185 + #define PRINT(name, value) \ 186 + case name: return #name; 187 + XR_LIST_ENUM_XrActionType(PRINT) 188 + #undef PRINT 189 + default: return "XR_ACTION_TYPE_UNKNOWN"; 190 + } 191 + // clang-format on 192 + } 193 + 180 194 /* 181 195 * 182 196 * oxr_handle_base.c