pipe_set_space_freed_callback

Function pipe_set_space_freed_callback 

Source
pub unsafe extern "C" fn pipe_set_space_freed_callback(
    pipe: *mut PipeSide,
    callback: PipeSideSpaceFreedCallback,
    event: FuriEventLoopEvent,
)
Expand description

Sets the callback for when data is read out of the opposite PipeSide.

ยง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.