X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/iokit/IOKit/IODataQueue.h diff --git a/iokit/IOKit/IODataQueue.h b/iokit/IOKit/IODataQueue.h index 458cb478a..8af46e5b3 100644 --- a/iokit/IOKit/IODataQueue.h +++ b/iokit/IOKit/IODataQueue.h @@ -29,6 +29,11 @@ #ifndef _IOKIT_IODATAQUEUE_H #define _IOKIT_IODATAQUEUE_H +#ifndef DISABLE_DATAQUEUE_WARNING +#warning "IODataQueue is deprecated due to security issues in its interfaces, please use IOSharedDataQueue instead" +#endif + + #include #include #include @@ -54,7 +59,11 @@ struct _notifyMsg { * *
In order to make the data queue memory available to a user process, the method getMemoryDescriptor() must be used to get an IOMemoryDescriptor instance that can be mapped into a user process. Typically, the clientMemoryForType() method on an IOUserClient instance will be used to request the IOMemoryDescriptor and then return it to be mapped into the user process. */ +#ifndef DISABLE_DATAQUEUE_WARNING +class __attribute__((deprecated)) IODataQueue : public OSObject +#else class IODataQueue : public OSObject +#endif { OSDeclareDefaultStructors(IODataQueue) @@ -63,7 +72,7 @@ protected: void * notifyMsg; - virtual void free(); + virtual void free() APPLE_KEXT_OVERRIDE; /*! * @function sendDataAvailableNotification