typedef void (*IOStorageCompletionAction)(void * target, void * parameter, IOReturn status, UInt64 actualByteCount);
The IOStorageCompletionAction declaration describes the C (or C++) completion routine that is called once an asynchronous storage operation completes.
Name Description target Opaque client-supplied pointer (or an instance pointer for a C++ callback). parameter Opaque client-supplied pointer. status Status of the data transfer. actualByteCount Actual number of bytes transferred in the data transfer.
struct IOStorageCompletion { void * target; IOStorageCompletionAction action; void * parameter; };
The IOStorageCompletion structure describes the C (or C++) completion routine that is called once an asynchronous storage operation completes. The values passed for the target and parameter fields will be passed to the routine when it is called.
Name Description target Opaque client-supplied pointer (or an instance pointer for a C++ callback). action Completion routine to call on completion of the data transfer. parameter Opaque client-supplied pointer.
kIOStorageCategory is a value for IOService's kIOMatchCategoryKey property.
#define kIOStorageCategory "IOStorage" /* (as IOMatchCategory) */
The kIOStorageCategory value is the standard value for the IOService property kIOMatchCategoryKey ("IOMatchCategory") for all storage drivers. All storage objects that expect to drive new content (that is, produce new media objects) are expected to compete within the kIOStorageCategory namespace. * See the IOService documentation for more information on match categories.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)