]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/pwr_mgt/IOPMinformeeList.h
xnu-4570.20.62.tar.gz
[apple/xnu.git] / iokit / IOKit / pwr_mgt / IOPMinformeeList.h
index 273c08996be7f7cfda3337bce9a02cdb078dda9d..f06689def51066efa74cf312da92835099333da8 100644 (file)
 
 class IOPMinformee;
 class IOService;
+extern uint32_t gCanSleepTimeout;
 
 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 );
-    void free ( void );
+    void free ( void ) APPLE_KEXT_OVERRIDE;
 
     unsigned long numberOfItems ( void );
 
+    IOPMinformee *appendNewInformee( IOService * newObject );
+    
+    // OBSOLETE
+    // do not use addToList(); Use appendNewInformee() instead
     IOReturn addToList ( IOPMinformee *   newInformee );
     IOReturn removeFromList ( IOService * theItem );