DADiskEjectApprovalCallback
Type of the callback function used by DARegisterDiskEjectApprovalCallback().
Declaration
typealias DADiskEjectApprovalCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?Parameters
- disk:
A disk object.
- context:
The user-defined context parameter given to the registration function.
Return Value
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().