X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/21362eb3e66fd2c787aee132bce100a44d71a99c..4a3eedf9ecc9bbe3f3a5c6ce5e53ad199d639d32:/iokit/IOKit/pwr_mgt/IOPMPowerSourceList.h diff --git a/iokit/IOKit/pwr_mgt/IOPMPowerSourceList.h b/iokit/IOKit/pwr_mgt/IOPMPowerSourceList.h index 69666035a..cb1c8ea37 100644 --- a/iokit/IOKit/pwr_mgt/IOPMPowerSourceList.h +++ b/iokit/IOKit/pwr_mgt/IOPMPowerSourceList.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 1998-2005 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -32,27 +32,23 @@ class IOPMPowerSource; class IOPMPowerSourceList : public OSObject { -OSDeclareDefaultStructors(IOPMPowerSourceList) - -private: - -IOPMPowerSource * firstItem; // pointer to first power source in list -unsigned long length; // how many power sources are in the list - - -public: -void initialize ( void ); - -IOReturn addToList ( IOPMPowerSource * newPowerSource ); - -IOPMPowerSource * firstInList ( void ); - -IOPMPowerSource * nextInList ( IOPMPowerSource * currentItem ); - -unsigned long numberOfItems ( void ); - -IOReturn removeFromList ( IOPMPowerSource * theItem ); - -void free ( void ); + OSDeclareDefaultStructors(IOPMPowerSourceList) + private: + // pointer to first power source in list + IOPMPowerSource *firstItem; + + // how many power sources are in the list + unsigned long length; + + public: + void initialize(void); + void free(void); + + unsigned long numberOfItems(void); + IOReturn addToList(IOPMPowerSource *newPowerSource); + IOReturn removeFromList(IOPMPowerSource *theItem); + + IOPMPowerSource *firstInList(void); + IOPMPowerSource *nextInList(IOPMPowerSource *currentItem); };