X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/iokit/IOKit/IOSharedDataQueue.h diff --git a/iokit/IOKit/IOSharedDataQueue.h b/iokit/IOKit/IOSharedDataQueue.h index c956ce774..e634da8f8 100644 --- a/iokit/IOKit/IOSharedDataQueue.h +++ b/iokit/IOKit/IOSharedDataQueue.h @@ -32,6 +32,7 @@ #define DISABLE_DATAQUEUE_WARNING /* IODataQueue is deprecated, please use IOSharedDataQueue instead */ #include +#include #undef DISABLE_DATAQUEUE_WARNING @@ -87,7 +88,7 @@ public: * @param size The size of the data queue memory region. * @result Returns the newly allocated IOSharedDataQueue instance. Zero is returned on failure. */ - static IOSharedDataQueue *withCapacity(UInt32 size); + static OSPtr withCapacity(UInt32 size); /*! * @function withEntries @@ -97,7 +98,7 @@ public: * @param entrySize Size of each entry. * @result Reeturns the newly allocated IOSharedDataQueue instance. Zero is returned on failure. */ - static IOSharedDataQueue *withEntries(UInt32 numEntries, UInt32 entrySize); + static OSPtr withEntries(UInt32 numEntries, UInt32 entrySize); /*! * @function initWithCapacity @@ -114,7 +115,7 @@ public: * @discussion The IOMemoryDescriptor instance returned by this method is intended to be mapped into a user process. This is the memory region that the IODataQueueClient code operates on. * @result Returns a newly allocated IOMemoryDescriptor for the IODataQueueMemory region. Returns zero on failure. */ - virtual IOMemoryDescriptor *getMemoryDescriptor() APPLE_KEXT_OVERRIDE; + virtual OSPtr getMemoryDescriptor() APPLE_KEXT_OVERRIDE; /*! * @function peek