Skip to main content

module_speak

Function module_speak 

Source
pub unsafe extern "C" fn module_speak(
    data: *const c_char,
    len: usize,
    msgtype: MessageType,
) -> c_int
Expand description

Asynchronous speak

Your module implementation must export it’s own version of either module_speak_sync or this function as:

#[unsafe(no_mangle)]
unsafe extern "C" fn module_speak(data: *const raw::c_char, len: usize, msgtype: MessageType) -> raw::c_int {
    // Implementation
}