Modifier and Type | Interface and Description |
---|---|
static class |
DiskArbitration.DADiskRef
Type of a reference to
DADisk instances. |
static class |
DiskArbitration.DASessionRef
Type of a reference to
DASession instances. |
Library.Handler
Modifier and Type | Field and Description |
---|---|
static DiskArbitration |
INSTANCE |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
CoreFoundation.CFDictionaryRef |
DADiskCopyDescription(DiskArbitration.DADiskRef disk)
Obtains the Disk Arbitration description of the specified disk.
|
DiskArbitration.DADiskRef |
DADiskCreateFromBSDName(CoreFoundation.CFAllocatorRef alloc,
DiskArbitration.DASessionRef session,
java.lang.String diskName)
Creates a new disk object.
|
DiskArbitration.DADiskRef |
DADiskCreateFromIOMedia(CoreFoundation.CFAllocatorRef allocator,
DiskArbitration.DASessionRef session,
IOKit.IOObject media)
Creates a new disk object.
|
java.lang.String |
DADiskGetBSDName(DiskArbitration.DADiskRef disk)
Obtains the BSD device name for the specified disk.
|
DiskArbitration.DASessionRef |
DASessionCreate(CoreFoundation.CFAllocatorRef alloc)
Creates a new session.
|
static final DiskArbitration INSTANCE
DiskArbitration.DASessionRef DASessionCreate(CoreFoundation.CFAllocatorRef alloc)
The caller also implicitly retains the object and is responsible for
releasing it with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
.
alloc
- The allocator object to be used to allocate memory.DASession
.DiskArbitration.DADiskRef DADiskCreateFromBSDName(CoreFoundation.CFAllocatorRef alloc, DiskArbitration.DASessionRef session, java.lang.String diskName)
The caller also implicitly retains the object and is responsible for
releasing it with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
.
alloc
- The allocator object to be used to allocate memory.session
- The DASession
in which to contact Disk Arbitration.diskName
- the BSD device name.DADisk
.DiskArbitration.DADiskRef DADiskCreateFromIOMedia(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, IOKit.IOObject media)
The caller also implicitly retains the object and is responsible for
releasing it with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
.
allocator
- The allocator object to be used to allocate memory.session
- The DASession
in which to contact Disk Arbitration.media
- The I/O Kit media object.DADisk
.CoreFoundation.CFDictionaryRef DADiskCopyDescription(DiskArbitration.DADiskRef disk)
The caller of this function receives a reference to the returned object. The
caller also implicitly retains the object and is responsible for releasing it
with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)
.
disk
- The DADisk
for which to obtain the Disk Arbitration
description.java.lang.String DADiskGetBSDName(DiskArbitration.DADiskRef disk)
disk
- The DADisk
for which to obtain the BSD device name.