The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: Add xrt_platform_info

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

authored by

Jarvis Huang and committed by
Rylie Pavlik
5ede35c7 24117123

+31 -1
+1 -1
doc/changes/xrt/mr.1655.md
··· 1 - - Move `xrt_instance_info` members to nested `xrt_application_info` struct. 1 + - Move `xrt_instance_info` members to nested `xrt_application_info` struct, and add a parallel `xrt_platform_info`.
+30
src/xrt/include/xrt/xrt_instance.h
··· 12 12 13 13 #include "xrt/xrt_compiler.h" 14 14 #include "xrt/xrt_defines.h" 15 + #include "xrt/xrt_config_os.h" 15 16 16 17 17 18 #ifdef __cplusplus ··· 26 27 struct xrt_system_devices; 27 28 struct xrt_system_compositor; 28 29 30 + struct _JavaVM; 31 + 32 + /*! 33 + * Platform-specific information for an instance. 34 + * 35 + * Does not get transported between processes. 36 + * 37 + * @addtogroup xrt_iface 38 + */ 39 + struct xrt_platform_info 40 + { 41 + #if defined(XRT_OS_ANDROID) || defined(XRT_DOXYGEN) 42 + /*! 43 + * @name Android members 44 + * @{ 45 + */ 46 + struct _JavaVM *vm; 47 + void *context; 48 + /*! @} */ 49 + #else 50 + //! To avoid empty structs. 51 + uint32_t _padding; 52 + #endif 53 + }; 54 + 29 55 30 56 /*! 31 57 * @addtogroup xrt_iface ··· 59 85 */ 60 86 struct xrt_instance_info 61 87 { 88 + //! Generic data from application. 62 89 struct xrt_application_info app_info; 90 + 91 + //! Process-specific, platform-specific data. 92 + struct xrt_platform_info platform_info; 63 93 }; 64 94 65 95 /*!