summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/kernel/power.h60
1 files changed, 3 insertions, 57 deletions
diff --git a/include/kernel/power.h b/include/kernel/power.h
index 4a98153..870191e 100644
--- a/include/kernel/power.h
+++ b/include/kernel/power.h
@@ -5,7 +5,7 @@
#ifndef _VDSUITE_KERNEL_POWER_H
#define _VDSUITE_KERNEL_POWER_H
-#include <scetypes.h>
+#include_next <power.h>
#ifdef __cplusplus
extern "C" {
@@ -14,57 +14,17 @@ extern "C" {
typedef enum ScePowerCallbackType {
/** indicates the power button was pushed, putting the unit into suspend mode */
SCE_POWER_CB_POWER_SWITCH = 0x80000000,
- /** ? screen on after off ? **/
- SCE_POWER_CB_UNK_1 = 0x00600000,
- /** ? screen off ? **/
- SCE_POWER_CB_UNK_2 = 0x00400000,
/** indicates the unit has finish resuming from suspend mode */
SCE_POWER_CB_RESUME_COMPLETE = 0x00040000,
/** indicates the unit is resuming from suspend mode */
SCE_POWER_CB_RESUMING = 0x00020000,
/** indicates the unit is suspending, seems to occur due to inactivity */
SCE_POWER_CB_SUSPENDING = 0x00010000,
- /** indicates the unit is plugged into an AC outlet */
- SCE_POWER_CB_AC_POWER = 0x00001000,
- /** indicates the battery is in low state **/
- SCE_POWER_CB_LOWBATTERY = 0x00000100,
- /** indicates there is a battery present in the unit **/
- SCE_POWER_CB_BATTERY_EXIST = 0x00000080
} ScePowerCallbackType;
-/* Callbacks */
-
-/** Callback function prototype */
-typedef void (*ScePowerCallback)(int notifyId, int notifyCount, int powerInfo);
-
/* Prototypes */
/**
- * Registers a ScePower Callback
- *
- * @param cbid - The UID of the specified callback
- *
- * @return 0 on success, < 0 on error
- */
-int scePowerRegisterCallback(SceUID cbid);
-
-/**
- * Unregister a callback
- *
- * @param cbid - The UID of the specified callback
- *
- * @return 0 on success, < 0 on error
- */
-int scePowerUnregisterCallback(SceUID cbid);
-
-/**
- * Returns battery charging status
- *
- * @return SCE_TRUE if under charge, SCE_FALSE otherwise
- */
-SceBool scePowerIsBatteryCharging(void);
-
-/**
* Returns battery life percentage
*
* @return Battery life percentage
@@ -79,13 +39,6 @@ int scePowerGetBatteryLifePercent(void);
SceBool scePowerIsSuspendRequired(void);
/**
- * Check if AC is plugged in
- *
- * @return SCE_TRUE if plugged in, SCE_FALSE otherwise
- */
-SceBool scePowerIsPowerOnline(void);
-
-/**
* Returns battery life time
*
* @return Battery life time in seconds
@@ -100,13 +53,6 @@ int scePowerGetBatteryLifeTime(void);
int scePowerGetBatteryRemainCapacity(void);
/**
- * Returns battery state
- *
- * @return SCE_TRUE if battery is low, SCE_FALSE otherwise
- */
-SceBool scePowerIsLowBattery(void);
-
-/**
* Returns battery full capacity
*
* @return battery full capacity in mAh (milliampere hour)
@@ -211,9 +157,9 @@ int scePowerRequestDisplayOff(void);
* @param brightness Brightness that the screen will be set to (range 21-65536, 0 turns off the screen).
*
* @return ?
- */
+ */
int scePowerSetDisplayBrightness(int brightness);
-
+
/**
* Sets CPU clock frequency
*