DiskArbitration.h

Register for mount/unmount notifications, and block mount/unmount events.

Overview

See the Overview section above for header-level documentation.

Overview

Included Headers

  • <CoreFoundation/CoreFoundation.h>

  • <DiskArbitration/DADisk.h>

  • <DiskArbitration/DADissenter.h>

  • <DiskArbitration/DASession.h>

Topics

Miscellaneous

func DADiskGetOptions(DADisk) -> DADiskOptions

Obtains the options for the specified disk.

func DADiskIsClaimed(DADisk) -> Bool

Reports whether or not the disk is claimed.

func DADiskUnclaim(DADisk)

Unclaims the specified disk object.

func DARegisterDiskPeekCallback(DASession, CFDictionary?, CFIndex, DADiskPeekCallback, UnsafeMutableRawPointer?)

Registers a callback function to be called whenever a disk has been probed.

Callbacks

See the Overview section above for header-level documentation.

typealias DADiskAppearedCallback

Type of the callback function used by DARegisterDiskAppearedCallback().

typealias DADiskClaimCallback

Type of the callback function used by DADiskClaim().

typealias DADiskClaimReleaseCallback

Type of the callback function used by DADiskClaim().

typealias DADiskDescriptionChangedCallback

Type of the callback function used by DARegisterDiskDescriptionChangedCallback().

typealias DADiskDisappearedCallback

Type of the callback function used by DARegisterDiskDisappearedCallback().

typealias DADiskEjectApprovalCallback

Type of the callback function used by DARegisterDiskEjectApprovalCallback().

typealias DADiskEjectCallback

Type of the callback function used by DADiskEject().

typealias DADiskMountApprovalCallback

Type of the callback function used by DARegisterDiskMountApprovalCallback().

typealias DADiskMountCallback

Type of the callback function used by DADiskMount().

typealias DADiskPeekCallback

Type of the callback function used by DARegisterDiskPeekCallback().

typealias DADiskRenameCallback

Type of the callback function used by DADiskRename().

typealias DADiskUnmountApprovalCallback

Type of the callback function used by DARegisterDiskUnmountApprovalCallback().

typealias DADiskUnmountCallback

Type of the callback function used by DADiskUnmount().

Constants

See the Overview section above for header-level documentation.

DADiskClaimOptions

Options for DADiskClaim().

DADiskEjectOptions

Options for DADiskEject().

DADiskMountOptions

Options for DADiskMount().

DADiskRenameOptions

Options for DADiskRename().

DADiskUnmountOptions

Options for DADiskUnmount().