diff options
author | Glenn Anderson | 2015-08-14 23:27:02 -0400 |
---|---|---|
committer | Glenn Anderson | 2015-08-14 23:27:02 -0400 |
commit | 1f6cb4f3cbf7ae615d12c1dd66136347247ab7a6 (patch) | |
tree | ca88156373140a2081e64ae091d05555adadad69 /include/user/power.h | |
download | vds-libraries-1f6cb4f3cbf7ae615d12c1dd66136347247ab7a6.tar.gz |
Initial commit. Added headers from psp2sdk.
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_ */ |