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 instancestream_buffer- The stream buffer to addevent(direction in) - The Event Loop event to trigger oncallback(direction in) - The callback to call on eventcontext- The context for callback