summaryrefslogtreecommitdiff
path: root/include/user/power.h
diff options
context:
space:
mode:
authorRinnegatamante2017-06-15 11:36:33 +0200
committerSunguk Lee2017-06-15 18:36:33 +0900
commitb5646d6867a3c279e0a7f5b3db42678f84d7ff15 (patch)
treeb625c863cf3657b5901523e438bddb8330c10a74 /include/user/power.h
parentRemoved next entry (diff)
downloadvds-libraries-b5646d6867a3c279e0a7f5b3db42678f84d7ff15.tar.gz
Named anonymous enums in psp2. (#179)
* Named anonymous enums in psp2. Named anonymous enums in psp2. * Properly sorted enums. * Several modifications (see desc) Added some missing info, fixed identation in some places, aligned all enums and comments with spaces as delimiters, replaced decimal negative errorcode in location.h with hexadecimal one, added some comments and fixed some documentation comments. * Minor fixes in identation. * Yet another minor identation fix. * Fixed enums in structs. * Reverted SceBool changes. * SceBool fix. * Fix for compilation with g++- * Added some doc references in jpegenc. * Fixed some references.
Diffstat (limited to '')
-rw-r--r--include/user/power.h21
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_ */
-