MappingOptions mappingOptions = kMapped,
UInt64 maxTransferSize = 0,
UInt32 alignment = 1,
- IOMapper *mapper = 0,
- void *refCon = 0);
+ IOMapper *mapper = NULL,
+ void *refCon = NULL);
/*! @function weakWithSpecification
* @abstract Creates and initialises an IODMACommand in one operation if this version of the operating system supports it.
MappingOptions mapType = kMapped,
UInt64 maxTransferSize = 0,
UInt32 alignment = 1,
- IOMapper *mapper = 0,
- void *refCon = 0) __attribute__((always_inline));
+ IOMapper *mapper = NULL,
+ void *refCon = NULL) __attribute__((always_inline));
static IODMACommand *
withSpecification(SegmentFunction outSegFunc,
* @discussion Factory function to create and initialise an IODMACommand in one operation. The current command's specification will be duplicated in the new object, but however none of its state will be duplicated. This means that it is safe to clone a command even if it is currently active and running, however you must be certain that the command to be duplicated does have a valid reference for the duration.
* @result Returns a new IODMACommand if successfully created and initialised, 0 otherwise.
*/
- virtual IODMACommand *cloneCommand(void *refCon = 0);
+ virtual IODMACommand *cloneCommand(void *refCon = NULL);
/*! @function initWithSpecification
* @abstract Primary initializer for the IODMACommand class.
MappingOptions mappingOptions = kMapped,
UInt64 maxTransferSize = 0,
UInt32 alignment = 1,
- IOMapper *mapper = 0,
- void *refCon = 0);
+ IOMapper *mapper = NULL,
+ void *refCon = NULL);
/*! @function setMemoryDescriptor
* @abstract Sets and resets the DMACommand's current memory descriptor
MappingOptions mappingOptions = kMapped,
UInt64 maxTransferSize = 0,
UInt32 alignment = 1,
- IOMapper *mapper = 0,
+ IOMapper *mapper = NULL,
UInt64 offset = 0,
UInt64 length = 0,
bool flushCache = true,
*/
virtual
- bool initWithRefCon(void * refCon = 0);
+ bool initWithRefCon(void * refCon = NULL);
virtual
bool initWithSpecification(SegmentFunction outSegFunc,
ret = kIOReturnSuccess;
} else {
self->release();
- self = 0;
+ self = NULL;
ret = kIOReturnError;
}