<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DiskArbitration",
  "identifier" : "/documentation/DiskArbitration/DADiskMountApprovalCallback",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Disk Arbitration"
    ],
    "preciseIdentifier" : "c:@T@DADiskMountApprovalCallback"
  },
  "title" : "DADiskMountApprovalCallback"
}
-->

# DADiskMountApprovalCallback

Type of the callback function used by DARegisterDiskMountApprovalCallback().

```
typealias DADiskMountApprovalCallback = (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().

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)