flipperzero_sys

Function furi_event_loop_subscribe_stream_buffer

Source
pub unsafe extern "C" fn furi_event_loop_subscribe_stream_buffer(
    instance: *mut FuriEventLoop,
    stream_buffer: *mut FuriStreamBuffer,
    event: FuriEventLoopEvent,
    callback: FuriEventLoopEventCallback,
    context: *mut c_void,
)
Expand description

Subscribe to stream buffer events

you can only have one subscription for one event type.

ยงArguments

  • instance - The Event Loop instance
  • stream_buffer - The stream buffer to add
  • event (direction in) - The Event Loop event to trigger on
  • callback (direction in) - The callback to call on event
  • context - The context for callback