ADC Home > Reference Library > Reference > Darwin > Disk Arbitration Framework Reference

 


DADissenter.h

Includes:
<mach/error.h>
<CoreFoundation/CoreFoundation.h>

Overview



Functions

DADissenterCreate
Creates a new dissenter object.
DADissenterGetStatus
Obtains the return code.
DADissenterGetStatusString
Obtains the return code string.

DADissenterCreate


Creates a new dissenter object.

extern DADissenterRef DADissenterCreate(
    CFAllocatorRef allocator,
    DAReturn status,
    CFStringRef string );  
Parameters
allocator
The allocator object to be used to allocate memory.
status
The return code.
string
The return code string. Pass NULL for no reason.
Return Value

A reference to a new DADissenter.


DADissenterGetStatus


Obtains the return code.

extern DAReturn DADissenterGetStatus(
    DADissenterRef dissenter );  
Parameters
dissenter
The DADissenter for which to obtain the return code.
Return Value

The return code.


DADissenterGetStatusString


Obtains the return code string.

extern CFStringRef DADissenterGetStatusString(
    DADissenterRef dissenter );  
Parameters
dissenter
The DADissenter for which to obtain the return code string.
Return Value

The return code string.

Typedefs


DADissenterRef


typedef const struct __DADissenter * DADissenterRef;  
Discussion

Type of a reference to DADissenter instances.

Enumerations


DAReturn


A return code.

enum { 
    kDAReturnSuccess = 0, 
    kDAReturnError = err_local | err_local_diskarbitration | 0x01, /* 
        ( 0xF8DA0001 ) */
    kDAReturnBusy = err_local | err_local_diskarbitration | 0x02, /* 
        ( 0xF8DA0002 ) */
    kDAReturnBadArgument = err_local | err_local_diskarbitration | 0x03, /* 
        ( 0xF8DA0003 ) */
    kDAReturnExclusiveAccess = err_local | err_local_diskarbitration | 0x04, /* 
        ( 0xF8DA0004 ) */
    kDAReturnNoResources = err_local | err_local_diskarbitration | 0x05, /* 
        ( 0xF8DA0005 ) */
    kDAReturnNotFound = err_local | err_local_diskarbitration | 0x06, /* 
        ( 0xF8DA0006 ) */
    kDAReturnNotMounted = err_local | err_local_diskarbitration | 0x07, /* 
        ( 0xF8DA0007 ) */
    kDAReturnNotPermitted = err_local | err_local_diskarbitration | 0x08, /* 
        ( 0xF8DA0008 ) */
    kDAReturnNotPrivileged = err_local | err_local_diskarbitration | 0x09, /* 
        ( 0xF8DA0009 ) */
    kDAReturnNotReady = err_local | err_local_diskarbitration | 0x0A, /* 
        ( 0xF8DA000A ) */
    kDAReturnNotWritable = err_local | err_local_diskarbitration | 0x0B, /* 
        ( 0xF8DA000B ) */
    kDAReturnUnsupported = err_local | err_local_diskarbitration | 0x0C /* 
        ( 0xF8DA000C ) */
};  


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2008-03-11