#ifndef __DISKARBITRATIOND_DAINTERNAL__
#define __DISKARBITRATIOND_DAINTERNAL__
#include <mach/mach.h>
#include <sys/mount.h>
#include <CoreFoundation/CoreFoundation.h>
#ifdef __cplusplus
extern "C" {
#endif
#define ___GID_ADMIN 80
#define ___UID_ROOT 0
#define ___GID_UNKNOWN 99
#define ___UID_UNKNOWN 99
#define _kDAServiceName "com.apple.DiskArbitration.diskarbitrationd"
enum
{
_kDADiskAppearedCallback,
_kDADiskClaimCallback,
_kDADiskClaimReleaseCallback,
_kDADiskClassicCallback,
_kDADiskDescriptionChangedCallback,
_kDADiskDisappearedCallback,
_kDADiskEjectCallback,
_kDADiskEjectApprovalCallback,
_kDADiskMountCallback,
_kDADiskMountApprovalCallback,
_kDADiskPeekCallback,
_kDADiskRefreshCallback,
_kDADiskRenameCallback,
_kDADiskUnmountCallback,
_kDADiskUnmountApprovalCallback,
_kDAIdleCallback
};
typedef UInt32 _DACallbackKind;
enum
{
_kDADiskClaim = _kDADiskClaimCallback,
_kDADiskEject = _kDADiskEjectCallback,
_kDADiskMount = _kDADiskMountCallback,
_kDADiskRefresh = _kDADiskRefreshCallback,
_kDADiskRename = _kDADiskRenameCallback,
_kDADiskUnmount = _kDADiskUnmountCallback
};
typedef UInt32 _DARequestKind;
__private_extern__ const char * _kDAAuthorizeRightAdopt;
__private_extern__ const char * _kDAAuthorizeRightEncode;
__private_extern__ const char * _kDAAuthorizeRightMount;
__private_extern__ const char * _kDAAuthorizeRightRename;
__private_extern__ const char * _kDAAuthorizeRightUnmount;
__private_extern__ const CFStringRef _kDACallbackAddressKey;
__private_extern__ const CFStringRef _kDACallbackArgument0Key;
__private_extern__ const CFStringRef _kDACallbackArgument1Key;
__private_extern__ const CFStringRef _kDACallbackContextKey;
__private_extern__ const CFStringRef _kDACallbackDiskKey;
__private_extern__ const CFStringRef _kDACallbackKindKey;
__private_extern__ const CFStringRef _kDACallbackMatchKey;
__private_extern__ const CFStringRef _kDACallbackOrderKey;
__private_extern__ const CFStringRef _kDACallbackSessionKey;
__private_extern__ const CFStringRef _kDACallbackTimeKey;
__private_extern__ const CFStringRef _kDACallbackWatchKey;
__private_extern__ const CFStringRef _kDADiskIDKey;
__private_extern__ const CFStringRef _kDADissenterStatusKey;
__private_extern__ const CFStringRef _kDADissenterStatusStringKey;
__private_extern__ const CFStringRef _kDARequestArgument1Key;
__private_extern__ const CFStringRef _kDARequestArgument2Key;
__private_extern__ const CFStringRef _kDARequestArgument3Key;
__private_extern__ const CFStringRef _kDARequestCallbackKey;
__private_extern__ const CFStringRef _kDARequestDiskKey;
__private_extern__ const CFStringRef _kDARequestDissenterKey;
__private_extern__ const CFStringRef _kDARequestKindKey;
__private_extern__ const CFStringRef _kDARequestLinkKey;
__private_extern__ const CFStringRef _kDARequestStateKey;
__private_extern__ const CFStringRef _kDARequestUserGIDKey;
__private_extern__ const CFStringRef _kDARequestUserUIDKey;
__private_extern__ int ___isadmin( uid_t uid );
__private_extern__ int ___statfs( const char * path, struct statfs * buf, int flags );
__private_extern__ Boolean ___CFArrayContainsValue( CFArrayRef array, const void * value );
__private_extern__ void ___CFArrayRemoveValue( CFMutableArrayRef array, const void * value );
__private_extern__ vm_address_t ___CFDataCopyBytes( CFDataRef data, vm_size_t * length );
__private_extern__ SInt64 ___CFDictionaryGetIntegerValue( CFDictionaryRef dictionary, const void * key );
__private_extern__ void ___CFDictionarySetIntegerValue( CFMutableDictionaryRef dictionary, const void * key, SInt64 value );
__private_extern__ CFNumberRef ___CFNumberCreateWithIntegerValue( CFAllocatorRef allocator, SInt64 value );
__private_extern__ SInt64 ___CFNumberGetIntegerValue( CFNumberRef number );
__private_extern__ char * ___CFStringCopyCString( CFStringRef string );
__private_extern__ char * ___CFURLCopyFileSystemRepresentation( CFURLRef url );
__private_extern__ const char * _DACallbackKindGetName( _DACallbackKind kind );
__private_extern__ const char * _DARequestKindGetName( _DARequestKind kind );
__private_extern__ CFDataRef _DASerialize( CFAllocatorRef allocator, CFTypeRef object );
__private_extern__ CFDataRef _DASerializeDiskDescription( CFAllocatorRef allocator, CFDictionaryRef description );
__private_extern__ CFTypeRef _DAUnserialize( CFAllocatorRef allocator, CFDataRef data );
__private_extern__ CFMutableDictionaryRef _DAUnserializeDiskDescription( CFAllocatorRef allocator, CFDataRef data );
__private_extern__ CFTypeRef _DAUnserializeWithBytes( CFAllocatorRef allocator, vm_address_t bytes, vm_size_t length );
__private_extern__ CFMutableDictionaryRef _DAUnserializeDiskDescriptionWithBytes( CFAllocatorRef allocator, vm_address_t bytes, vm_size_t length );
#ifdef __cplusplus
}
#endif
#endif