diff options
Diffstat (limited to 'include/user/power.h')
-rw-r--r-- | include/user/power.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/user/power.h b/include/user/power.h new file mode 100644 index 0000000..e74afb3 --- /dev/null +++ b/include/user/power.h @@ -0,0 +1,30 @@ +#ifndef _PSP2_POWER_H_ +#define _PSP2_POWER_H_ + +#include <psp2/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* callback */ +typedef void (*ScePowerCallback)(int unknown, int powerInfo); + +/* prototypes */ +int scePowerRegisterCallback(int slot, SceUID cbid); +int scePowerIsBatteryCharging(); +int scePowerGetBatteryLifePercent(); +int scePowerSetConfigurationMode(int mode); //? +SceBool scePowerIsSuspendRequired(); //? +int scePowerIsPowerOnline(); +int scePowerGetBatteryLifeTime(); +int scePowerGetBatteryRemainCapacity(); //? +int scePowerIsLowBattery(); +int scePowerUnregisterCallback(int slot); +int scePowerGetBatteryFullCapacity(); //? + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_POWER_H_ */ |