Skip to main content

MaaCustomActionCallback

Type Alias MaaCustomActionCallback 

Source
pub type MaaCustomActionCallback = Option<unsafe extern "C" fn(context: *mut MaaContext, task_id: MaaTaskId, node_name: *const c_char, custom_action_name: *const c_char, custom_action_param: *const c_char, reco_id: MaaRecoId, box_: *const MaaRect, trans_arg: *mut c_void) -> MaaBool>;

Aliased Type§

pub enum MaaCustomActionCallback {
    None,
    Some(unsafe extern "C" fn(*mut MaaContext, i64, *const i8, *const i8, *const i8, i64, *const MaaRect, *mut c_void) -> u8),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut MaaContext, i64, *const i8, *const i8, *const i8, i64, *const MaaRect, *mut c_void) -> u8)

Some value of type T.