diff options
Diffstat (limited to '')
-rw-r--r-- | include/user/power.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/user/power.h b/include/user/power.h index 02ba7ff..8a6cadd 100644 --- a/include/user/power.h +++ b/include/user/power.h @@ -8,20 +8,22 @@ extern "C" { #endif -enum { - /*indicates the unit is suspending, seems to occur due to inactivity*/ - SCE_POWER_CB_SUSPENDING = 0x00010000, - /*indicates the unit is resuming from suspend mode*/ - SCE_POWER_CB_RESUMING = 0x00020000, - /*indicates the unit has finish resuming from suspend mode*/ - SCE_POWER_CB_RESUME_COMPLETE = 0x00040000 -}; +typedef enum ScePowerCallbackType { + /** indicates the unit is suspending, seems to occur due to inactivity */ + SCE_POWER_CB_SUSPENDING = 0x00010000, + /** indicates the unit is resuming from suspend mode */ + SCE_POWER_CB_RESUMING = 0x00020000, + /** indicates the unit has finish resuming from suspend mode */ + SCE_POWER_CB_RESUME_COMPLETE = 0x00040000 +}ScePowerCallbackType; /* Callbacks */ /** Callback function prototype */ typedef void (*ScePowerCallback)(int notifyId, int notifyCount, int powerInfo); +/* Prototypes */ + /** * Registers a ScePower Callback * @@ -40,8 +42,6 @@ int scePowerRegisterCallback(SceUID cbid); */ int scePowerUnregisterCallback(SceUID cbid); -/* Prototypes */ - /** * Returns battery charging status * @@ -232,4 +232,3 @@ int scePowerSetGpuXbarClockFrequency(int freq); #endif #endif /* _PSP2_POWER_H_ */ - |