Type Alias flipperzero_sys::PropertyValueCallback

source ·
pub type PropertyValueCallback = Option<unsafe extern "C" fn(key: *const c_char, value: *const c_char, last: bool, context: *mut c_void)>;
Expand description

Callback type called every time another key-value pair of device information is ready

§Arguments

  • key[in] - device information type identifier
  • value[in] - device information value
  • last[in] - whether the passed key-value pair is the last one
  • context[in] - to pass to callback

Aliased Type§

enum PropertyValueCallback {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: bool, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: *const i8, _: bool, _: *mut c_void))

Some value of type T.