xrt: Add helper push frame function

This commit is contained in:
Jakob Bornecrantz 2021-02-03 19:37:45 +00:00
parent 98f81734c8
commit 2b63fd8078

View file

@ -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
*