11#include <CoreFoundation/CoreFoundation.h>
12#include <IOKit/pwr_mgt/IOPMLib.h>
13#include <IOKit/IOMessage.h>
29 void Init(
void)
override;
30 bool DoFeature (
bool Delayed =
false)
override;
33 natural_t Type,
void *Data);
bool DoFeature(bool Delayed=false) override
static void PowerSourceCallBack(void *Reference)
Receive notification of changes to the power supply.
IONotificationPortRef m_powerNotifyPort
MythPowerOSX()
Power management for OSX.
static void PowerCallBack(void *Reference, io_service_t Service, natural_t Type, void *Data)
Receive notification of power status changes.
void Refresh(void) override
io_connect_t m_rootPowerDomain
CFRunLoopSourceRef m_powerRef
io_object_t m_powerNotifier