mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
inc/xrt: Add defines for underlying handle type
This commit is contained in:
parent
663f5467b4
commit
8889f81194
1
doc/changes/xrt/mr.469.md
Normal file
1
doc/changes/xrt/mr.469.md
Normal file
|
@ -0,0 +1 @@
|
|||
Add defines for underlying handle types.
|
|
@ -24,6 +24,13 @@ extern "C" {
|
|||
*/
|
||||
typedef int xrt_shmem_handle_t;
|
||||
|
||||
/*!
|
||||
* Defined to allow detection of the underlying type.
|
||||
*
|
||||
* @relates xrt_shmem_handle_t
|
||||
*/
|
||||
#define XRT_SHMEM_HANDLE_IS_FD 1
|
||||
|
||||
/*!
|
||||
* Check whether a shared memory handle is valid.
|
||||
*
|
||||
|
@ -56,6 +63,13 @@ typedef struct AHardwareBuffer AHardwareBuffer;
|
|||
*/
|
||||
typedef AHardwareBuffer *xrt_graphics_buffer_handle_t;
|
||||
|
||||
/*!
|
||||
* Defined to allow detection of the underlying type.
|
||||
*
|
||||
* @relates xrt_graphics_buffer_handle_t
|
||||
*/
|
||||
#define XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER 1
|
||||
|
||||
/*!
|
||||
* Check whether a graphics buffer handle is valid.
|
||||
*
|
||||
|
@ -87,6 +101,13 @@ xrt_graphics_buffer_is_valid(xrt_graphics_buffer_handle_t handle)
|
|||
*/
|
||||
typedef int xrt_graphics_buffer_handle_t;
|
||||
|
||||
/*!
|
||||
* Defined to allow detection of the underlying type.
|
||||
*
|
||||
* @relates xrt_graphics_buffer_handle_t
|
||||
*/
|
||||
#define XRT_GRAPHICS_BUFFER_HANDLE_IS_FD 1
|
||||
|
||||
/*!
|
||||
* Check whether a graphics buffer handle is valid.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue