mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 21:26:36 +00:00
xrt: Make prepare_session and poll_events return xrt_result_t
This commit is contained in:
parent
017e6738e0
commit
5ac0c7a139
|
@ -386,12 +386,12 @@ struct xrt_compositor
|
|||
*
|
||||
* This function is very much WIP.
|
||||
*/
|
||||
void (*poll_events)(struct xrt_compositor *xc, uint64_t *WIP);
|
||||
xrt_result_t (*poll_events)(struct xrt_compositor *xc, uint64_t *WIP);
|
||||
|
||||
/*!
|
||||
* This function is implicit in the OpenXR spec but made explicit here.
|
||||
*/
|
||||
void (*prepare_session)(struct xrt_compositor *xc);
|
||||
xrt_result_t (*prepare_session)(struct xrt_compositor *xc);
|
||||
|
||||
/*!
|
||||
* See xrBeginSession.
|
||||
|
@ -515,10 +515,10 @@ xrt_comp_create_swapchain(struct xrt_compositor *xc,
|
|||
*
|
||||
* @public @memberof xrt_compositor
|
||||
*/
|
||||
static inline void
|
||||
static inline xrt_result_t
|
||||
xrt_comp_poll_events(struct xrt_compositor *xc, uint64_t *WIP)
|
||||
{
|
||||
xc->poll_events(xc, WIP);
|
||||
return xc->poll_events(xc, WIP);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -528,10 +528,10 @@ xrt_comp_poll_events(struct xrt_compositor *xc, uint64_t *WIP)
|
|||
*
|
||||
* @public @memberof xrt_compositor
|
||||
*/
|
||||
static inline void
|
||||
static inline xrt_result_t
|
||||
xrt_comp_prepare_session(struct xrt_compositor *xc)
|
||||
{
|
||||
xc->prepare_session(xc);
|
||||
return xc->prepare_session(xc);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue