return sharedListLock;
}
+ //*********************************************************************************
+// appendNewInformee
+ //
+ //*********************************************************************************
+IOPMinformee *IOPMinformeeList::appendNewInformee ( IOService * newObject )
+{
+ IOPMinformee * newInformee;
+
+ if (!newObject)
+ return NULL;
+
+ newInformee = IOPMinformee::withObject (newObject);
+
+ if (!newInformee)
+ return NULL;
+
+ if( IOPMNoErr == addToList (newInformee))
+ return newInformee;
+ else
+ return NULL;
+}
+
+
//*********************************************************************************
// addToList
-//
+// *OBSOLETE* do not call from outside of this file.
+// Try appendNewInformee() instead
//*********************************************************************************
-
IOReturn IOPMinformeeList::addToList ( IOPMinformee * newInformee )
{
IOPMinformee * nextInformee;