Type Definition librist_sys::receiver_data_callback_t[][src]

type receiver_data_callback_t = Option<unsafe extern "C" fn(arg: *mut c_void, data_block: *const rist_data_block) -> c_int>;

@brief Data callback function

Optional calling application provided function for receiving callbacks upon data reception. Can be used to directly process data, or signal the calling application to read within it’s own context. Stalling in this function will hinder data-reception of the libRIST library. This function will be called from a per-flow output thread and must be thread-safe.

@param arg optional user data set via rist_receiver_data_callback_set @param data_block reference counted data_block structure MUST be freed via rist_receiver_data_block_free @return int, ignored.