+#if 0
+IOReturn RootDomainUserClient::externalMethod( uint32_t selector, IOExternalMethodArguments * args,
+ IOExternalMethodDispatch * dispatch, OSObject * target, void * reference )
+{
+ static const IOExternalMethodDispatch sMethods[] = {
+ { // kPMSetAggressiveness, 0
+ (IOService *)1, (IOMethod)&RootDomainUserClient::secureSetAggressiveness, kIOUCScalarIScalarO, 2, 1
+ },
+ { // kPMGetAggressiveness, 1
+ 0, (IOMethod)&IOPMrootDomain::getAggressiveness, kIOUCScalarIScalarO, 1, 1
+ },
+ { // kPMSleepSystem, 2
+ (IOService *)1, (IOMethod)&RootDomainUserClient::secureSleepSystem, kIOUCScalarIScalarO, 0, 1
+ },
+ { // kPMAllowPowerChange, 3
+ 0, (IOMethod)&IOPMrootDomain::allowPowerChange, kIOUCScalarIScalarO, 1, 0
+ },
+ { // kPMCancelPowerChange, 4
+ 0, (IOMethod)&IOPMrootDomain::cancelPowerChange, kIOUCScalarIScalarO, 1, 0
+ },
+ { // kPMShutdownSystem, 5
+ 0, (IOMethod)&IOPMrootDomain::shutdownSystem, kIOUCScalarIScalarO, 0, 0
+ },
+ { // kPMRestartSystem, 6
+ 0, (IOMethod)&IOPMrootDomain::restartSystem, kIOUCScalarIScalarO, 0, 0
+ },
+ { // kPMSetPreventative, 7
+ (IOService *)1, (IOMethod)&RootDomainUserClient::setPreventative, kIOUCScalarIScalarO, 2, 0
+ },
+ };
+
+ if (selector > (sizeof(sMethods) / sizeof(sMethods[0])))
+ return (kIOReturnBadArgument);
+
+ if ((1 << selector) & ((1 << 0) | (1 << 7))
+ target = this;
+ else
+ target = fOwner;
+
+ return (super::externalMethod(selector, args, &sMethods[selector], target, 0));
+}
+#endif
+