ddwaf_log_cb

Type Alias ddwaf_log_cb 

Source
pub type ddwaf_log_cb = Option<unsafe extern "C" fn(level: DDWAF_LOG_LEVEL, function: *const c_char, file: *const c_char, line: c_uint, message: *const c_char, message_len: u64)>;
Expand description

@typedef ddwaf_log_cb

Callback that powerwaf will call to relay messages to the binding.

@param level The logging level. @param function The native function that emitted the message. (nonnull) @param file The file of the native function that emmitted the message. (nonnull) @param line The line where the message was emmitted. @param message The size of the logging message. NUL-terminated @param message_len The length of the logging message (excluding NUL terminator).

Aliased Type§

pub enum ddwaf_log_cb {
    None,
    Some(unsafe extern "C" fn(u32, *const i8, *const i8, u32, *const i8, u64)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, *const i8, *const i8, u32, *const i8, u64))

Some value of type T.