DADiskUnmountApprovalCallback

Type Alias DADiskUnmountApprovalCallback 

Source
pub type DADiskUnmountApprovalCallback = Option<unsafe extern "C" fn(disk: DADiskRef, context: *mut c_void) -> DADissenterRef>;
Expand description

Type of the callback function used by DARegisterDiskUnmountApprovalCallback.

§Parameters

  • disk - A disk object.
  • context - The user-defined context parameter given to the registration function.

§Returns

A dissenter reference. Pass NULL to approve.

§Discussion

The caller of this callback receives a reference to the returned object. The caller also implicitly retains the object and is responsible for releasing it with CFRelease.

Aliased Type§

pub enum DADiskUnmountApprovalCallback {
    None,
    Some(unsafe extern "C" fn(*mut __DADisk, *mut c_void) -> *const __DADissenter),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut __DADisk, *mut c_void) -> *const __DADissenter)

Some value of type T.