X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/89b3af67bb32e691275bf6fa803d1834b2284115..8a3053a07cee346dca737a5670e546fd26a7c9d6:/iokit/IOKit/pwr_mgt/IOPMinformeeList.h diff --git a/iokit/IOKit/pwr_mgt/IOPMinformeeList.h b/iokit/IOKit/pwr_mgt/IOPMinformeeList.h index 273c08996..8efd4a654 100644 --- a/iokit/IOKit/pwr_mgt/IOPMinformeeList.h +++ b/iokit/IOKit/pwr_mgt/IOPMinformeeList.h @@ -35,10 +35,13 @@ class IOService; class IOPMinformeeList : public OSObject { OSDeclareDefaultStructors(IOPMinformeeList) + friend class IOPMinformee; private: - IOPMinformee *firstItem; // pointer to first informee in the list - unsigned long length; // how many informees are in the list + // pointer to first informee in the list + IOPMinformee *firstItem; + // how many informees are in the list + unsigned long length; public: void initialize ( void ); @@ -46,6 +49,10 @@ public: unsigned long numberOfItems ( void ); + IOPMinformee *appendNewInformee( IOService * newObject ); + + // OBSOLETE + // do not use addToList(); Use appendNewInformee() instead IOReturn addToList ( IOPMinformee * newInformee ); IOReturn removeFromList ( IOService * theItem );