pub type PluginCallbackUtf16 = unsafe extern "C" fn(event_code: u32, plugin_name: *const UChar, plugin_name_bytes: usize, plugin_index: usize, plugin_count: usize, bitrate: usize, plugin_packets: usize, total_packets: usize, data: *const u8, data_size: usize, data_max_size: usize, data_read_only: bool, event_data: *mut c_void) -> bool;Expand description
Plugin callback with the ABI expected by TSDuck’s Python-compatible handler.
plugin_name borrows plugin_name_bytes bytes of native-endian UTF-16 for
the duration of the call. data remains a byte buffer with its own explicit
lengths. Return false to report callback failure and contain all panics.