IOStorage.h



Typedefs

IOStorageCompletionAction

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.

Parameters

NameDescription
targetOpaque client-supplied pointer (or an instance pointer for a C++ callback).
parameterOpaque client-supplied pointer.
statusStatus of the data transfer.
actualByteCountActual number of bytes transferred in the data transfer.

Structs

IOStorageCompletion

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.

Fields

NameDescription
targetOpaque client-supplied pointer (or an instance pointer for a C++ callback).
actionCompletion routine to call on completion of the data transfer.
parameterOpaque client-supplied pointer.

#defines

kIOStorageCategory

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)