Package com.sun.jna.platform.mac
Schnittstelle DiskArbitration
- Alle Superschnittstellen:
Library
Disk Arbitration is a low-level framework based on Core Foundation. The Disk
Arbitration framework provides the ability to get various pieces of
information about a volume.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic class
Type of a reference toDADisk
instances.static class
Type of a reference toDASession
instances.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Library
Library.Handler
-
Feldübersicht
FelderVon Schnittstelle geerbte Felder com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungObtains the Disk Arbitration description of the specified disk.DADiskCreateFromBSDName
(CoreFoundation.CFAllocatorRef alloc, DiskArbitration.DASessionRef session, String diskName) Creates a new disk object.DADiskCreateFromIOMedia
(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, IOKit.IOObject media) Creates a new disk object.Obtains the BSD device name for the specified disk.Creates a new session.
-
Felddetails
-
INSTANCE
-
-
Methodendetails
-
DASessionCreate
Creates a new session. 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)
.- Parameter:
alloc
- The allocator object to be used to allocate memory.- Gibt zurück:
- A reference to a new
DASession
.
-
DADiskCreateFromBSDName
DiskArbitration.DADiskRef DADiskCreateFromBSDName(CoreFoundation.CFAllocatorRef alloc, DiskArbitration.DASessionRef session, String diskName) Creates a new disk object. 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)
.- Parameter:
alloc
- The allocator object to be used to allocate memory.session
- TheDASession
in which to contact Disk Arbitration.diskName
- the BSD device name.- Gibt zurück:
- A reference to a new
DADisk
.
-
DADiskCreateFromIOMedia
DiskArbitration.DADiskRef DADiskCreateFromIOMedia(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, IOKit.IOObject media) Creates a new disk object. 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)
.- Parameter:
allocator
- The allocator object to be used to allocate memory.session
- TheDASession
in which to contact Disk Arbitration.media
- The I/O Kit media object.- Gibt zurück:
- A reference to a new
DADisk
.
-
DADiskCopyDescription
Obtains the Disk Arbitration description of the specified disk. This function will contact Disk Arbitration to acquire the latest description of the specified disk, unless this function is called on a disk object passed within the context of a registered callback, in which case the description is current as of that callback event.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)
.- Parameter:
disk
- TheDADisk
for which to obtain the Disk Arbitration description.- Gibt zurück:
- The disk's Disk Arbitration description.
-
DADiskGetBSDName
Obtains the BSD device name for the specified disk.- Parameter:
disk
- TheDADisk
for which to obtain the BSD device name.- Gibt zurück:
- The disk's BSD device name.
-