From f52b925d305dbfa564f9241c8a2bd689abfe39d7 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Fri, 12 Mar 2021 16:45:35 -0500 Subject: Remove duplicate definitions in kernel/power.h --- include/kernel/power.h | 60 +++----------------------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) (limited to 'include') 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 +#include_next #ifdef __cplusplus extern "C" { @@ -14,56 +14,16 @@ 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 * @@ -78,13 +38,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 * @@ -99,13 +52,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 * @@ -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 * -- cgit v1.2.3