ucl_variable_handler

Type Alias ucl_variable_handler 

Source
pub type ucl_variable_handler = Option<unsafe extern "C" fn(data: *const c_uchar, len: usize, replace: *mut *mut c_uchar, replace_len: *mut usize, need_free: *mut bool, ud: *mut c_void) -> bool>;
Expand description

Handler to detect unregistered variables @param data variable data @param len length of variable @param replace (out) replace value for variable @param replace_len (out) replace length for variable @param need_free (out) UCL will free dest after usage @param ud opaque userdata @return true if variable

Aliased Type§

pub enum ucl_variable_handler {
    None,
    Some(unsafe extern "C" fn(*const u8, usize, *mut *mut u8, *mut usize, *mut bool, *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const u8, usize, *mut *mut u8, *mut usize, *mut bool, *mut c_void) -> bool)

Some value of type T.