mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 12:49:13 +00:00
IStorage
This commit is contained in:
parent
5f3ed6dfc0
commit
fe6dc1717c
19 changed files with 80 additions and 15 deletions
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
12
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorage.cs
Normal file
12
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
13
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageAccessor.cs
Normal file
13
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageAccessor.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
14
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs
Normal file
14
src/Ryujinx.Horizon/Sdk/Am/Storage/IStorageChannel.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue