mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
remove link_prefixes
This commit is contained in:
+30
-31
@@ -6,7 +6,6 @@ import sce "../common"
|
||||
foreign import power "system:ScePower_stub"
|
||||
foreign import powerkern "system:ScePowerForDriver_stub"
|
||||
|
||||
@(link_prefix = "scePower")
|
||||
foreign power {
|
||||
/**
|
||||
* Registers a ScePower Callback
|
||||
@@ -15,7 +14,7 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
RegisterCallback :: proc(cbid: sce.UID) -> c.int ---
|
||||
scePowerRegisterCallback :: proc(cbid: sce.UID) -> c.int ---
|
||||
|
||||
/**
|
||||
* Unregister a callback
|
||||
@@ -24,21 +23,21 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
UnregisterCallback :: proc(cbid: sce.UID) -> c.int ---
|
||||
scePowerUnregisterCallback :: proc(cbid: sce.UID) -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery charging status
|
||||
*
|
||||
* @return SCE_TRUE if under charge, SCE_FALSE otherwise
|
||||
*/
|
||||
IsBatteryCharging :: proc() -> sce.Bool ---
|
||||
scePowerIsBatteryCharging :: proc() -> sce.Bool ---
|
||||
|
||||
/**
|
||||
* Returns battery life percentage
|
||||
*
|
||||
* @return Battery life percentage
|
||||
*/
|
||||
GetBatteryLifePercent :: proc() -> c.int ---
|
||||
scePowerGetBatteryLifePercent :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Set power configuration mode between:
|
||||
@@ -51,140 +50,140 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success
|
||||
*/
|
||||
SetConfigurationMode :: proc(conf: c.int) -> c.int ---
|
||||
scePowerSetConfigurationMode :: proc(conf: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Check if a suspend is required
|
||||
*
|
||||
* @return SCE_TRUE if suspend is required, SCE_FALSE otherwise
|
||||
*/
|
||||
IsSuspendRequired :: proc() -> sce.Bool ---
|
||||
scePowerIsSuspendRequired :: proc() -> sce.Bool ---
|
||||
|
||||
/**
|
||||
* Check if AC is plugged in
|
||||
*
|
||||
* @return SCE_TRUE if plugged in, SCE_FALSE otherwise
|
||||
*/
|
||||
IsPowerOnline :: proc() -> sce.Bool ---
|
||||
scePowerIsPowerOnline :: proc() -> sce.Bool ---
|
||||
|
||||
/**
|
||||
* Returns battery life time
|
||||
*
|
||||
* @return Battery life time in minutes
|
||||
*/
|
||||
GetBatteryLifeTime :: proc() -> c.int ---
|
||||
scePowerGetBatteryLifeTime :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery remaining capacity
|
||||
*
|
||||
* @return battery remaining capacity in mAh (milliampere hour)
|
||||
*/
|
||||
GetBatteryRemainCapacity :: proc() -> c.int ---
|
||||
scePowerGetBatteryRemainCapacity :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery state
|
||||
*
|
||||
* @return SCE_TRUE if battery is low, SCE_FALSE otherwise
|
||||
*/
|
||||
IsLowBattery :: proc() -> sce.Bool ---
|
||||
scePowerIsLowBattery :: proc() -> sce.Bool ---
|
||||
|
||||
/**
|
||||
* Returns battery full capacity
|
||||
*
|
||||
* @return battery full capacity in mAh (milliampere hour)
|
||||
*/
|
||||
GetBatteryFullCapacity :: proc() -> c.int ---
|
||||
scePowerGetBatteryFullCapacity :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery temperature
|
||||
*
|
||||
* @return temperature in degrees celcius * 100
|
||||
*/
|
||||
GetBatteryTemp :: proc() -> c.int ---
|
||||
scePowerGetBatteryTemp :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery voltage
|
||||
*
|
||||
* @return battery voltage in mV (millivolts)
|
||||
*/
|
||||
GetBatteryVolt :: proc() -> c.int ---
|
||||
scePowerGetBatteryVolt :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery state of health
|
||||
*
|
||||
* @return battery state of health percent
|
||||
*/
|
||||
GetBatterySOH :: proc() -> c.int ---
|
||||
scePowerGetBatterySOH :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns battery cycle count
|
||||
*
|
||||
* @return battery cycle count
|
||||
*/
|
||||
GetBatteryCycleCount :: proc() -> c.int ---
|
||||
scePowerGetBatteryCycleCount :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns CPU clock frequency
|
||||
*
|
||||
* @return CPU clock frequency in Mhz
|
||||
*/
|
||||
GetArmClockFrequency :: proc() -> c.int ---
|
||||
scePowerGetArmClockFrequency :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns BUS clock frequency
|
||||
*
|
||||
* @return BUS clock frequency in Mhz
|
||||
*/
|
||||
GetBusClockFrequency :: proc() -> c.int ---
|
||||
scePowerGetBusClockFrequency :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns GPU clock frequency
|
||||
*
|
||||
* @return GPU clock frequency in Mhz
|
||||
*/
|
||||
GetGpuClockFrequency :: proc() -> c.int ---
|
||||
scePowerGetGpuClockFrequency :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Returns GPU crossbar clock frequency
|
||||
*
|
||||
* @return GPU crossbar clock frequency in Mhz
|
||||
*/
|
||||
GetGpuXbarClockFrequency :: proc() -> c.int ---
|
||||
scePowerGetGpuXbarClockFrequency :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Requests PS Vita to do a cold reset
|
||||
*
|
||||
* @return always 0
|
||||
*/
|
||||
RequestColdReset :: proc() -> c.int ---
|
||||
scePowerRequestColdReset :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Requests PS Vita to go into standby
|
||||
*
|
||||
* @return always 0
|
||||
*/
|
||||
RequestStandby :: proc() -> c.int ---
|
||||
scePowerRequestStandby :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Requests PS Vita to suspend
|
||||
*
|
||||
* @return always 0
|
||||
*/
|
||||
RequestSuspend :: proc() -> c.int ---
|
||||
scePowerRequestSuspend :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Request display on
|
||||
*
|
||||
* @return always 0
|
||||
*/
|
||||
RequestDisplayOn :: proc() -> c.int ---
|
||||
scePowerRequestDisplayOn :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Request display off
|
||||
*
|
||||
* @return always 0
|
||||
*/
|
||||
RequestDisplayOff :: proc() -> c.int ---
|
||||
scePowerRequestDisplayOff :: proc() -> c.int ---
|
||||
|
||||
/**
|
||||
* Sets CPU clock frequency
|
||||
@@ -193,7 +192,7 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetArmClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
scePowerSetArmClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Sets BUS clock frequency
|
||||
@@ -202,7 +201,7 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetBusClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
scePowerSetBusClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Sets GPU clock frequency
|
||||
@@ -211,7 +210,7 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetGpuClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
scePowerSetGpuClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Sets GPU crossbar clock frequency
|
||||
@@ -220,7 +219,7 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetGpuXbarClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
scePowerSetGpuXbarClockFrequency :: proc(freq: c.int) -> c.int ---
|
||||
|
||||
/**
|
||||
* Sets wireless features usage
|
||||
@@ -229,14 +228,14 @@ foreign power {
|
||||
*
|
||||
* @return 0 on success, < 0 on error
|
||||
*/
|
||||
SetUsingWireless :: proc(enabled: sce.Bool) -> c.int ---
|
||||
scePowerSetUsingWireless :: proc(enabled: sce.Bool) -> c.int ---
|
||||
|
||||
/**
|
||||
* Gets wireless features usage
|
||||
*
|
||||
* @return SCE_TRUE if enabled, SCE_FALSE otherwise
|
||||
*/
|
||||
GetUsingWireless :: proc() -> c.int ---
|
||||
scePowerGetUsingWireless :: proc() -> c.int ---
|
||||
}
|
||||
|
||||
foreign powerkern {
|
||||
|
||||
Reference in New Issue
Block a user