#include <IOKit/pwr_mgt/IOPMinformee.h>
#define super OSObject
-OSDefineMetaClassAndStructors(IOPMinformee,OSObject)
+
+OSDefineMetaClassAndStructors(IOPMinformee, OSObject)
+
//*********************************************************************************
-// constructor
+// static constructor
//
//*********************************************************************************
+IOPMinformee *IOPMinformee::withObject( IOService *theObject )
+{
+ IOPMinformee *newInformee = new IOPMinformee;
+
+ if (!newInformee) return NULL;
+ newInformee->init();
+ newInformee->initialize( theObject );
+
+ return newInformee;
+}
+
+//*********************************************************************************
+// constructor
+//
+//*********************************************************************************
void IOPMinformee::initialize ( IOService * theObject )
{
whatObject = theObject;
timer = 0;
+ active = true;
whatObject->retain();
-
}
// free
//
//*********************************************************************************
-
void IOPMinformee::free (void )
{
whatObject->release();