CTelemetryCallback

Type Alias CTelemetryCallback 

Source
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 of data_json
  • metadata: 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),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(extern "C" fn(*const i8, *const u8, usize, *const CPacketMetadata, *mut c_void) -> CResult)

Some value of type T.