pub type CTelemetryCallback = Option<extern "C" fn(*const c_char, *const u8, usize, *const CPacketMetadata, *mut c_void) -> CResult>;Expand description
Callback function type for emitting telemetry events to the host.
Parameters:
event_type: null-terminated UTF-8 string (e.g., “vad.speech_start”)data_json: UTF-8 JSON bytes (not null-terminated)data_len: length ofdata_jsonmetadata: optional packet-style metadata (may be null)user_data: opaque pointer provided by the host
Aliased Type§
pub enum CTelemetryCallback {
None,
Some(extern "C" fn(*const i8, *const u8, usize, *const CPacketMetadata, *mut c_void) -> CResult),
}