mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
apm: add apmGetPerformanceMode
This commit is contained in:
parent
44ec13169d
commit
6392512344
@ -33,6 +33,12 @@ Service* apmGetServiceSession(void);
|
|||||||
/// Gets the Service object for ISession.
|
/// Gets the Service object for ISession.
|
||||||
Service* apmGetServiceSession_Session(void);
|
Service* apmGetServiceSession_Session(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets the current ApmPerformanceMode.
|
||||||
|
* @param[out] out_performanceMode ApmPerformanceMode
|
||||||
|
*/
|
||||||
|
Result apmGetPerformanceMode(ApmPerformanceMode* out_performanceMode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the PerformanceConfiguration for the specified PerformanceMode.
|
* @brief Sets the PerformanceConfiguration for the specified PerformanceMode.
|
||||||
* @param[in] PerformanceMode \ref ApmPerformanceMode
|
* @param[in] PerformanceMode \ref ApmPerformanceMode
|
||||||
|
@ -39,6 +39,10 @@ static Result _apmCmdGetSession(Service* srv, Service* srv_out, u32 cmd_id) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result apmGetPerformanceMode(ApmPerformanceMode* out_performanceMode) {
|
||||||
|
return serviceDispatchOut(&g_apmSrv, 1, *out_performanceMode);
|
||||||
|
}
|
||||||
|
|
||||||
Result apmSetPerformanceConfiguration(ApmPerformanceMode PerformanceMode, u32 PerformanceConfiguration) {
|
Result apmSetPerformanceConfiguration(ApmPerformanceMode PerformanceMode, u32 PerformanceConfiguration) {
|
||||||
const struct {
|
const struct {
|
||||||
u32 PerformanceMode;
|
u32 PerformanceMode;
|
||||||
|
Loading…
Reference in New Issue
Block a user