Documentation Archive Developer
Search

DiskArbitration Changes for Objective-C

DiskArbitration

DADisk.h

Declaration
From
CFDictionaryRef DADiskCopyDescription (
    DADiskRef disk
);
To
CFDictionaryRef _Nullable DADiskCopyDescription (
    DADiskRef _Nonnull disk
);

Declaration
From
io_service_t DADiskCopyIOMedia (
    DADiskRef disk
);
To
io_service_t DADiskCopyIOMedia (
    DADiskRef _Nonnull disk
);

Declaration
From
DADiskRef DADiskCopyWholeDisk (
    DADiskRef disk
);
To
DADiskRef _Nullable DADiskCopyWholeDisk (
    DADiskRef _Nonnull disk
);

Declaration
From
DADiskRef DADiskCreateFromBSDName (
    CFAllocatorRef allocator,
    DASessionRef session,
    const char *name
);
To
DADiskRef _Nullable DADiskCreateFromBSDName (
    CFAllocatorRef _Nullable allocator,
    DASessionRef _Nonnull session,
    const char * _Nonnull name
);

Declaration
From
DADiskRef DADiskCreateFromIOMedia (
    CFAllocatorRef allocator,
    DASessionRef session,
    io_service_t media
);
To
DADiskRef _Nullable DADiskCreateFromIOMedia (
    CFAllocatorRef _Nullable allocator,
    DASessionRef _Nonnull session,
    io_service_t media
);

Declaration
From
DADiskRef DADiskCreateFromVolumePath (
    CFAllocatorRef allocator,
    DASessionRef session,
    CFURLRef path
);
To
DADiskRef _Nullable DADiskCreateFromVolumePath (
    CFAllocatorRef _Nullable allocator,
    DASessionRef _Nonnull session,
    CFURLRef _Nonnull path
);

Declaration
From
const char * DADiskGetBSDName (
    DADiskRef disk
);
To
const char * _Nullable DADiskGetBSDName (
    DADiskRef _Nonnull disk
);

DADissenter.h

Declaration
From
DADissenterRef DADissenterCreate (
    CFAllocatorRef allocator,
    DAReturn status,
    CFStringRef string
);
To
DADissenterRef _Nonnull DADissenterCreate (
    CFAllocatorRef _Nullable allocator,
    DAReturn status,
    CFStringRef _Nullable string
);

Declaration
From
DAReturn DADissenterGetStatus (
    DADissenterRef dissenter
);
To
DAReturn DADissenterGetStatus (
    DADissenterRef _Nonnull dissenter
);

Declaration
From
CFStringRef DADissenterGetStatusString (
    DADissenterRef dissenter
);
To
CFStringRef _Nullable DADissenterGetStatusString (
    DADissenterRef _Nonnull dissenter
);

DASession.h

Declaration
From
DAApprovalSessionRef DAApprovalSessionCreate (
    CFAllocatorRef allocator
);
To
DAApprovalSessionRef _Nullable DAApprovalSessionCreate (
    CFAllocatorRef _Nullable allocator
);

Declaration
From
void DAApprovalSessionScheduleWithRunLoop (
    DAApprovalSessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void DAApprovalSessionScheduleWithRunLoop (
    DAApprovalSessionRef _Nonnull session,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
void DAApprovalSessionUnscheduleFromRunLoop (
    DAApprovalSessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void DAApprovalSessionUnscheduleFromRunLoop (
    DAApprovalSessionRef _Nonnull session,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
DASessionRef DASessionCreate (
    CFAllocatorRef allocator
);
To
DASessionRef _Nullable DASessionCreate (
    CFAllocatorRef _Nullable allocator
);

Declaration
From
void DASessionScheduleWithRunLoop (
    DASessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void DASessionScheduleWithRunLoop (
    DASessionRef _Nonnull session,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
void DASessionSetDispatchQueue (
    DASessionRef session,
    dispatch_queue_t queue
);
To
void DASessionSetDispatchQueue (
    DASessionRef _Nonnull session,
    dispatch_queue_t _Nullable queue
);

Declaration
From
void DASessionUnscheduleFromRunLoop (
    DASessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void DASessionUnscheduleFromRunLoop (
    DASessionRef _Nonnull session,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

DiskArbitration.h

Modified DADiskClaim()
Declaration
From
void DADiskClaim (
    DADiskRef disk,
    DADiskClaimOptions options,
    DADiskClaimReleaseCallback release,
    void *releaseContext,
    DADiskClaimCallback callback,
    void *callbackContext
);
To
void DADiskClaim (
    DADiskRef _Nonnull disk,
    DADiskClaimOptions options,
    DADiskClaimReleaseCallback _Nullable release,
    void * _Nullable releaseContext,
    DADiskClaimCallback _Nullable callback,
    void * _Nullable callbackContext
);

Modified DADiskEject()
Declaration
From
void DADiskEject (
    DADiskRef disk,
    DADiskEjectOptions options,
    DADiskEjectCallback callback,
    void *context
);
To
void DADiskEject (
    DADiskRef _Nonnull disk,
    DADiskEjectOptions options,
    DADiskEjectCallback _Nullable callback,
    void * _Nullable context
);

Declaration
From
DADiskOptions DADiskGetOptions (
    DADiskRef disk
);
To
DADiskOptions DADiskGetOptions (
    DADiskRef _Nonnull disk
);

Declaration
From
Boolean DADiskIsClaimed (
    DADiskRef disk
);
To
Boolean DADiskIsClaimed (
    DADiskRef _Nonnull disk
);

Modified DADiskMount()
Declaration
From
void DADiskMount (
    DADiskRef disk,
    CFURLRef path,
    DADiskMountOptions options,
    DADiskMountCallback callback,
    void *context
);
To
void DADiskMount (
    DADiskRef _Nonnull disk,
    CFURLRef _Nullable path,
    DADiskMountOptions options,
    DADiskMountCallback _Nullable callback,
    void * _Nullable context
);

Declaration
From
void DADiskMountWithArguments (
    DADiskRef disk,
    CFURLRef path,
    DADiskMountOptions options,
    DADiskMountCallback callback,
    void *context,
    CFStringRef arguments[]
);
To
void DADiskMountWithArguments (
    DADiskRef _Nonnull disk,
    CFURLRef _Nullable path,
    DADiskMountOptions options,
    DADiskMountCallback _Nullable callback,
    void * _Nullable context,
    CFStringRef  _Nonnull arguments[]
);

Declaration
From
void DADiskRename (
    DADiskRef disk,
    CFStringRef name,
    DADiskRenameOptions options,
    DADiskRenameCallback callback,
    void *context
);
To
void DADiskRename (
    DADiskRef _Nonnull disk,
    CFStringRef _Nonnull name,
    DADiskRenameOptions options,
    DADiskRenameCallback _Nullable callback,
    void * _Nullable context
);

Declaration
From
DAReturn DADiskSetOptions (
    DADiskRef disk,
    DADiskOptions options,
    Boolean value
);
To
DAReturn DADiskSetOptions (
    DADiskRef _Nonnull disk,
    DADiskOptions options,
    Boolean value
);

Declaration
From
void DADiskUnclaim (
    DADiskRef disk
);
To
void DADiskUnclaim (
    DADiskRef _Nonnull disk
);

Declaration
From
void DADiskUnmount (
    DADiskRef disk,
    DADiskUnmountOptions options,
    DADiskUnmountCallback callback,
    void *context
);
To
void DADiskUnmount (
    DADiskRef _Nonnull disk,
    DADiskUnmountOptions options,
    DADiskUnmountCallback _Nullable callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskAppearedCallback (
    DASessionRef session,
    CFDictionaryRef match,
    DADiskAppearedCallback callback,
    void *context
);
To
void DARegisterDiskAppearedCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    DADiskAppearedCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskDescriptionChangedCallback (
    DASessionRef session,
    CFDictionaryRef match,
    CFArrayRef watch,
    DADiskDescriptionChangedCallback callback,
    void *context
);
To
void DARegisterDiskDescriptionChangedCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    CFArrayRef _Nullable watch,
    DADiskDescriptionChangedCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskDisappearedCallback (
    DASessionRef session,
    CFDictionaryRef match,
    DADiskDisappearedCallback callback,
    void *context
);
To
void DARegisterDiskDisappearedCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    DADiskDisappearedCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskEjectApprovalCallback (
    DASessionRef session,
    CFDictionaryRef match,
    DADiskEjectApprovalCallback callback,
    void *context
);
To
void DARegisterDiskEjectApprovalCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    DADiskEjectApprovalCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskMountApprovalCallback (
    DASessionRef session,
    CFDictionaryRef match,
    DADiskMountApprovalCallback callback,
    void *context
);
To
void DARegisterDiskMountApprovalCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    DADiskMountApprovalCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskPeekCallback (
    DASessionRef session,
    CFDictionaryRef match,
    CFIndex order,
    DADiskPeekCallback callback,
    void *context
);
To
void DARegisterDiskPeekCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    CFIndex order,
    DADiskPeekCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DARegisterDiskUnmountApprovalCallback (
    DASessionRef session,
    CFDictionaryRef match,
    DADiskUnmountApprovalCallback callback,
    void *context
);
To
void DARegisterDiskUnmountApprovalCallback (
    DASessionRef _Nonnull session,
    CFDictionaryRef _Nullable match,
    DADiskUnmountApprovalCallback _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DAUnregisterApprovalCallback (
    DASessionRef session,
    void *callback,
    void *context
);
To
void DAUnregisterApprovalCallback (
    DASessionRef _Nonnull session,
    void * _Nonnull callback,
    void * _Nullable context
);

Declaration
From
void DAUnregisterCallback (
    DASessionRef session,
    void *callback,
    void *context
);
To
void DAUnregisterCallback (
    DASessionRef _Nonnull session,
    void * _Nonnull callback,
    void * _Nullable context
);