Skip to main content

btck_logging_connection_create

Function btck_logging_connection_create 

Source
pub unsafe extern "C" fn btck_logging_connection_create(
    log_callback: btck_LogCallback,
    user_data: *mut c_void,
    user_data_destroy_callback: btck_DestroyCallback,
) -> *mut btck_LoggingConnection
Expand description

@brief Start logging messages through the provided callback. Log messages produced before this function is first called are buffered and on calling this function are logged immediately.

@param[in] log_callback Non-null, function through which messages will be logged. @param[in] user_data Nullable, holds a user-defined opaque structure. Is passed back to the user through the callback. If the user_data_destroy_callback is also defined it is assumed that ownership of the user_data is passed to the created logging connection. @param[in] user_data_destroy_callback Nullable, function for freeing the user data. @return A new kernel logging connection, or null on error.