From b0c7806821f942f4cb39e4f7c24b91c7d3b06a41 Mon Sep 17 00:00:00 2001 From: Rinnegatamante Date: Tue, 30 Jan 2018 13:08:45 +0100 Subject: Added ScePower errorcodes. --- include/user/power.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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, -- cgit v1.2.3