The open source OpenXR runtime
0
fork

Configure Feed

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

inc/xrt: Add defines for underlying handle type

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
8889f811 663f5467

+22
+1
doc/changes/xrt/mr.469.md
··· 1 + Add defines for underlying handle types.
+21
src/xrt/include/xrt/xrt_handles.h
··· 25 25 typedef int xrt_shmem_handle_t; 26 26 27 27 /*! 28 + * Defined to allow detection of the underlying type. 29 + * 30 + * @relates xrt_shmem_handle_t 31 + */ 32 + #define XRT_SHMEM_HANDLE_IS_FD 1 33 + 34 + /*! 28 35 * Check whether a shared memory handle is valid. 29 36 * 30 37 * @public @memberof xrt_shmem_handle_t ··· 57 64 typedef AHardwareBuffer *xrt_graphics_buffer_handle_t; 58 65 59 66 /*! 67 + * Defined to allow detection of the underlying type. 68 + * 69 + * @relates xrt_graphics_buffer_handle_t 70 + */ 71 + #define XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 1 72 + 73 + /*! 60 74 * Check whether a graphics buffer handle is valid. 61 75 * 62 76 * @public @memberof xrt_graphics_buffer_handle_t ··· 86 100 * On Linux, this is a file descriptor. 87 101 */ 88 102 typedef int xrt_graphics_buffer_handle_t; 103 + 104 + /*! 105 + * Defined to allow detection of the underlying type. 106 + * 107 + * @relates xrt_graphics_buffer_handle_t 108 + */ 109 + #define XRT_GRAPHICS_BUFFER_HANDLE_IS_FD 1 89 110 90 111 /*! 91 112 * Check whether a graphics buffer handle is valid.