pub unsafe extern "C" fn pipe_set_broken_callback(
pipe: *mut PipeSide,
callback: PipeSideBrokenCallback,
event: FuriEventLoopEvent,
)Expand description
Sets the callback for when the opposite PipeSide is freed, making
the pipe broken.
ยงArguments
[in]- pipe Pipe side to assign the callback to[in]- callback Callback to assign to the pipe side. Set to NULL to unsubscribe.[in]- event Additional event loop flags (e.g.Edge,Once, etc.). Non-flag values of the enum are not allowed.
Attach the pipe side to an event loop first using
pipe_attach_to_event_loop.