ICommonStateGetter

This commit is contained in:
Isaac Marovitz 2023-10-21 01:21:47 -04:00
parent e5c0dfa87e
commit b00e1de4e6
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
5 changed files with 65 additions and 4 deletions

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Horizon.Sdk.Am
{
public interface IApplicationProxy
{
Result GetCommonStateGetter();
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter, ulong pid);
Result GetSelfController();
Result GetWindowController();
Result GetAudioController();

View file

@ -0,0 +1,61 @@
using Ryujinx.Horizon.Common;
namespace Ryujinx.Horizon.Sdk.Am
{
public interface ICommonStateGetter
{
Result GetEventHandle();
Result ReceiveMessage();
Result GetThisAppletKind();
Result AllowToEnterSleep();
Result DisallowToEnterSleep();
Result GetOperationMode();
Result GetPerformanceMode();
Result GetCradleStatus();
Result GetBootMode();
Result GetCurrentFocusState();
Result RequestToAcquireSleepLock();
Result ReleaseSleepLock();
Result ReleaseSleepLockTransiently();
Result GetAcquiredSleepLockEvent();
Result GetWakeupCount();
Result PushToGeneralChannel();
Result GetHomeButtonReaderLockAccessor();
Result GetReaderLockAccessorEx();
Result GetWriterLockAccessorEx();
Result GetCradleFwVersion();
Result IsVrModeEnabled();
Result SetVrModeEnabled();
Result SetLcdBacklightOffEnabled();
Result BeginVrModeEx();
Result EndVrModeEx();
Result IsInControllerFirmwareUpdateSection();
Result SetVrPositionForDebug();
Result GetDefaultDisplayResolution();
Result GetDefaultDisplayResolutionChangeEvent();
Result GetHdcpAuthenticationState();
Result GetHdcpAuthenticationStateChangeEvent();
Result SetTvPowerStateMatchingMode();
Result GetApplicationIdByContentActionName();
Result SetCpuBoostMode();
Result CancelCpuBoostMode();
Result GetBuiltInDisplayType();
Result PerformSystemButtonPressingIfInFocus();
Result SetPerformanceConfigurationChangedNotification();
Result GetCurrentPerformanceConfiguration();
Result SetHandlingHomeButtonShortPressedEnabled();
Result OpenMyGpuErrorHandler();
Result GetAppletLaunchedHistory();
Result GetOperationModeSystemInfo();
Result GetSettingsPlatformRegion();
Result ActivateMigrationService();
Result DeactivateMigrationService();
Result DisableSleepTillShutdown();
Result SuppressDisablingSleepTemporarily();
Result IsSleepEnabled();
Result IsDisablingSleepSuppressed();
Result OpenNamedChannelAsChild();
Result SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled();
Result GetLaunchRequiredTick();
}
}

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Horizon.Sdk.Am
{
public interface ILibraryAppletProxy
{
Result GetCommonStateGetter();
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter, ulong pid);
Result GetSelfController();
Result GetWindowController();
Result GetAudioController();

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Horizon.Sdk.Am
{
public interface IOverlayAppletProxy
{
Result GetCommonStateGetter();
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter, ulong pid);
Result GetSelfController();
Result GetWindowController();
Result GetAudioController();

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Horizon.Sdk.Am
{
public interface ISystemAppletProxy
{
Result GetCommonStateGetter();
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter, ulong pid);
Result GetSelfController();
Result GetWindowController();
Result GetAudioController();