[][src]Type Definition openthread_sys::otCliConsoleOutputCallback

type otCliConsoleOutputCallback = Option<unsafe extern "C" fn(aBuf: *const c_char, aBufLength: u16, aContext: *mut c_void) -> c_int>;

This function pointer is called to notify about Console output.

@param[in] aBuf A pointer to a buffer with an output. @param[in] aBufLength A length of the output data stored in the buffer. @param[out] aContext A user context pointer.

@returns Number of bytes processed by the callback.