From 74ecbf6deb7234093e65b975c07dd6bcf0153e4d Mon Sep 17 00:00:00 2001 From: Francisco José García García Date: Sat, 13 May 2017 13:30:08 +0200 Subject: Fix callback functions and add some enums --- include/user/power.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/user/power.h b/include/user/power.h index a3426e4..dc2a928 100644 --- a/include/user/power.h +++ b/include/user/power.h @@ -8,10 +8,18 @@ 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 +} /* Callbacks */ /** Callback function prototype */ -typedef void (*ScePowerCallback)(int unknown, int powerInfo); +typedef void (*ScePowerCallback)(int notifyId, int notifyCount, int powerInfo); /** * Registers a ScePower Callback -- cgit v1.2.3