Contents

DADiskClaimReleaseCallback

Type of the callback function used by DADiskClaim().

Declaration

typealias DADiskClaimReleaseCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?

Parameters

  • disk:

    The disk object.

  • context:

    The user-defined context parameter given to the claim function.

Return Value

A dissenter reference. Pass NULL to release claim.

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().

See Also

Callbacks