alpm_sys

Type Alias alpm_cb_event

Source
pub type alpm_cb_event = Option<unsafe extern "C" fn(ctx: *mut c_void, event: *mut alpm_event_t)>;
Expand description

Event callback.

Called when an event occurs @param ctx user-provided context @param event the event that occurred

Aliased Type§

enum alpm_cb_event {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut _alpm_event_t)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.