mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-09 15:28:03 +00:00
xrt: Add helper push frame function
This commit is contained in:
parent
98f81734c8
commit
2b63fd8078
|
@ -62,6 +62,19 @@ struct xrt_frame_sink
|
|||
void (*push_frame)(struct xrt_frame_sink *sink, struct xrt_frame *frame);
|
||||
};
|
||||
|
||||
/*!
|
||||
* @copydoc xrt_frame_sink::push_frame
|
||||
*
|
||||
* Helper for calling through the function pointer.
|
||||
*
|
||||
* @public @memberof xrt_frame_sink
|
||||
*/
|
||||
static inline void
|
||||
xrt_sink_push_frame(struct xrt_frame_sink *sink, struct xrt_frame *frame)
|
||||
{
|
||||
sink->push_frame(sink, frame);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @interface xrt_frame_node
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue