This commit is contained in:
Isaac Marovitz 2024-02-15 12:27:13 -05:00
parent 5f3ed6dfc0
commit fe6dc1717c
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
19 changed files with 80 additions and 15 deletions

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IAppletCommonFunctions interface IAppletCommonFunctions : IServiceObject
{ {
Result SetTerminateResult(); Result SetTerminateResult();
Result ReadThemeStorage(); Result ReadThemeStorage();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IApplicationFunctions interface IApplicationFunctions : IServiceObject
{ {
Result PopLaunchParameter(); Result PopLaunchParameter();
Result CreateApplicationAndPushAndRequestToStart(); Result CreateApplicationAndPushAndRequestToStart();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IAudioController interface IAudioController : IServiceObject
{ {
Result SetExpectedMasterVolume(float mainAppletVolume, float libraryAppletVolume); Result SetExpectedMasterVolume(float mainAppletVolume, float libraryAppletVolume);
Result GetMainAppletExpectedMasterVolume(out float mainAppletVolume); Result GetMainAppletExpectedMasterVolume(out float mainAppletVolume);

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface ICommonStateGetter interface ICommonStateGetter : IServiceObject
{ {
Result GetEventHandle(); Result GetEventHandle();
Result ReceiveMessage(); Result ReceiveMessage();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IDebugFunctions interface IDebugFunctions : IServiceObject
{ {
Result NotifyMessageToHomeMenuForDebug(); Result NotifyMessageToHomeMenuForDebug();
Result OpenMainApplication(); Result OpenMainApplication();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface ILibraryAppletCreator interface ILibraryAppletCreator : IServiceObject
{ {
Result CreateLibraryApplet(); Result CreateLibraryApplet();
Result TerminateAllLibraryApplets(); Result TerminateAllLibraryApplets();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface ILibraryAppletSelfAccessor interface ILibraryAppletSelfAccessor : IServiceObject
{ {
Result PopInData(); Result PopInData();
Result PushOutData(); Result PushOutData();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IOverlayFunctions interface IOverlayFunctions : IServiceObject
{ {
Result BeginToWatchShortHomeButtonMessage(); Result BeginToWatchShortHomeButtonMessage();
Result EndToWatchShortHomeButtonMessage(); Result EndToWatchShortHomeButtonMessage();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IProcessWindingController interface IProcessWindingController : IServiceObject
{ {
Result GetLaunchReason(); Result GetLaunchReason();
Result OpenCallingLibraryApplet(); Result OpenCallingLibraryApplet();

View file

@ -1,8 +1,9 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface ISelfController interface ISelfController : IServiceObject
{ {
Result Exit(); Result Exit();
Result LockExit(); Result LockExit();

View file

@ -1,9 +1,10 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
using System; using System;
namespace Ryujinx.Horizon.Sdk.Am.Controllers namespace Ryujinx.Horizon.Sdk.Am.Controllers
{ {
public interface IWindowController interface IWindowController : IServiceObject
{ {
Result CreateWindow(); Result CreateWindow();
Result GetAppletResourceUserId(); Result GetAppletResourceUserId();

View file

@ -1,9 +1,10 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Proxies namespace Ryujinx.Horizon.Sdk.Am.Proxies
{ {
public interface IApplicationProxy interface IApplicationProxy : IServiceObject
{ {
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter); Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter);
Result GetSelfController(out ISelfController selfController); Result GetSelfController(out ISelfController selfController);

View file

@ -1,9 +1,10 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Proxies namespace Ryujinx.Horizon.Sdk.Am.Proxies
{ {
public interface ILibraryAppletProxy interface ILibraryAppletProxy : IServiceObject
{ {
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter); Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter);
Result GetSelfController(out ISelfController selfController); Result GetSelfController(out ISelfController selfController);

View file

@ -1,9 +1,10 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Proxies namespace Ryujinx.Horizon.Sdk.Am.Proxies
{ {
public interface IOverlayAppletProxy interface IOverlayAppletProxy : IServiceObject
{ {
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter); Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter);
Result GetSelfController(out ISelfController selfController); Result GetSelfController(out ISelfController selfController);

View file

@ -1,9 +1,10 @@
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Proxies namespace Ryujinx.Horizon.Sdk.Am.Proxies
{ {
public interface ISystemAppletProxy interface ISystemAppletProxy : IServiceObject
{ {
Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter); Result GetCommonStateGetter(out ICommonStateGetter commonStateGetter);
Result GetSelfController(out ISelfController selfController); Result GetSelfController(out ISelfController selfController);

View file

@ -0,0 +1,12 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Storage
{
interface IStorage : IServiceObject
{
Result Open(out IStorageAccessor arg0);
Result OpenTransferStorage(out ITransferStorageAccessor arg0);
Result GetAndInvalidate(out IStorage arg0);
}
}

View file

@ -0,0 +1,13 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
using System;
namespace Ryujinx.Horizon.Sdk.Am.Storage
{
interface IStorageAccessor : IServiceObject
{
Result GetSize(out long arg0);
Result Write(long arg0, ReadOnlySpan<byte> arg1);
Result Read(long arg0, Span<byte> arg1);
}
}

View file

@ -0,0 +1,14 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Storage
{
interface IStorageChannel : IServiceObject
{
Result Push(IStorage arg0);
Result Unpop(IStorage arg0);
Result Pop(out IStorage arg0);
Result GetPopEventHandle(out int arg0);
Result Clear();
}
}

View file

@ -0,0 +1,11 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Storage
{
interface ITransferStorageAccessor : IServiceObject
{
Result GetSize(out long arg0);
Result GetHandle(out int arg0, out ulong arg1);
}
}