#[repr(C)]pub struct LV2_Log_Log {
pub handle: LV2_Log_Handle,
pub printf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ...) -> c_int>,
pub vprintf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ap: va_list) -> c_int>,
}Expand description
Log feature (LV2_LOG__log)
Fields§
§handle: LV2_Log_HandleOpaque pointer to host data.
This MUST be passed to methods in this struct whenever they are called. Otherwise, it must not be interpreted in any way.
printf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ...) -> c_int>Log a message, passing format parameters directly.
The API of this function matches that of the standard C printf function,
except for the addition of the first two parameters. This function may
be called from any non-realtime context, or from any context if type
is @ref LV2_LOG__Trace.
vprintf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ap: va_list) -> c_int>Log a message, passing format parameters in a va_list.
The API of this function matches that of the standard C vprintf
function, except for the addition of the first two parameters. This
function may be called from any non-realtime context, or from any
context if type is @ref LV2_LOG__Trace.
Trait Implementations§
Source§impl Clone for LV2_Log_Log
impl Clone for LV2_Log_Log
Source§fn clone(&self) -> LV2_Log_Log
fn clone(&self) -> LV2_Log_Log
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more