Type Alias flipperzero_sys::RpcAppSystemCallback

source ·
pub type RpcAppSystemCallback = Option<unsafe extern "C" fn(event: *const RpcAppSystemEvent, context: *mut c_void)>;
Expand description

Callback function type.

A function of this type must be passed to rpc_system_app_set_callback() by the user code.

The event pointer is valid ONLY inside the callback function.

§Arguments

  • event (direction in) - pointer to the event object. Valid only inside the callback function.
  • context (direction in, out) - pointer to the user-defined context object.

Aliased Type§

enum RpcAppSystemCallback {
    None,
    Some(unsafe extern "C" fn(_: *const RpcAppSystemEvent, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.