summaryrefslogtreecommitdiff
path: root/include/user/power.h
diff options
context:
space:
mode:
authorRinnegatamante2018-01-30 13:08:45 +0100
committerdevnoname1202018-01-30 13:16:32 +0100
commitb0c7806821f942f4cb39e4f7c24b91c7d3b06a41 (patch)
tree5da20a74ee7f46c5deeb96fbe04ad173651b5ad4 /include/user/power.h
parentFixed wrong NID in SceDisplay (diff)
downloadvds-libraries-b0c7806821f942f4cb39e4f7c24b91c7d3b06a41.tar.gz
Added ScePower errorcodes.
Diffstat (limited to 'include/user/power.h')
-rw-r--r--include/user/power.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/user/power.h b/include/user/power.h
index c05bd92..e42259e 100644
--- a/include/user/power.h
+++ b/include/user/power.h
@@ -8,6 +8,15 @@
extern "C" {
#endif
+typedef enum ScePowerErrorCode {
+ SCE_POWER_ERROR_INVALID_VALUE = 0x802B0000,
+ SCE_POWER_ERROR_ALREADY_REGISTERED = 0x802B0001,
+ SCE_POWER_ERROR_CALLBACK_NOT_REGISTERED = 0x802B0002,
+ SCE_POWER_ERROR_CANT_SUSPEND = 0x802B0003,
+ SCE_POWER_ERROR_NO_BATTERY = 0x802B0100,
+ SCE_POWER_ERROR_DETECTING = 0x802B0101
+} ScePowerErrorCode;
+
typedef enum ScePowerCallbackType {
/** indicates the unit is suspending, seems to occur due to inactivity */
SCE_POWER_CB_SUSPENDING = 0x00010000,