Monado OpenXR Runtime
xrt_session_event_sink Struct Reference

Used internally from producers of events to push events into session, some sinks might mutliplex events to multiple sessions. More...

#include <xrt/xrt_session.h>

Collaboration diagram for xrt_session_event_sink:

Public Member Functions

static XRT_CHECK_RESULT xrt_result_t xrt_session_event_sink_push (struct xrt_session_event_sink *xses, const union xrt_session_event *xse)
 Push one event to this sink, data is copied so pointer only needs to be valid for the duration of the call. More...
 

Data Fields

xrt_result_t(* push_event )(struct xrt_session_event_sink *xses, const union xrt_session_event *xse)
 Push one event to this sink, data is copied so pointer only needs to be valid for the duration of the call. More...
 

Detailed Description

Used internally from producers of events to push events into session, some sinks might mutliplex events to multiple sessions.

Member Function Documentation

◆ xrt_session_event_sink_push()

static XRT_CHECK_RESULT xrt_result_t xrt_session_event_sink_push ( struct xrt_session_event_sink xses,
const union xrt_session_event xse 
)
inline

Push one event to this sink, data is copied so pointer only needs to be valid for the duration of the call.

Parameters
xsesSelf-pointer to event sink.
xseA pre-filled out event.

Helper for calling through the function pointer.

References push_event.

Referenced by u_system::u_system_broadcast_event().

Field Documentation

◆ push_event

xrt_result_t(* xrt_session_event_sink::push_event) (struct xrt_session_event_sink *xses, const union xrt_session_event *xse)

Push one event to this sink, data is copied so pointer only needs to be valid for the duration of the call.

Parameters
xsesSelf-pointer to event sink.
xseA pre-filled out event.

Referenced by xrt_session_event_sink_push().


The documentation for this struct was generated from the following file: