Function

DARegisterDiskEjectApprovalCallback(_:_:_:_:)

Registers a callback function to be called whenever a volume is to be ejected.

Declaration

func DARegisterDiskEjectApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskEjectApprovalCallback, _ context: UnsafeMutableRawPointer?)

Parameters

session

The session object.

match

The disk description keys to match. Pass NULL for all disk objects.

callback

The callback function to call when a volume is to be ejected.

context

The user-defined context parameter to pass to the callback function.

See Also

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.