aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2019-11-21 13:24:06 +0100
committerThog <me@thog.eu>2019-11-21 13:24:06 +0100
commitcfcc360d0610c66e9b9986f7aab96f79df0da79e (patch)
tree178fb92d9dcbd7f52be430319f44a01149c4bd23 /Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs
parentee81ab547ee35c4f5f3342a6f1e0d6bbc60500e8 (diff)
ldn: Implement calls of UserLocalCommunicationService (#829)
* ldn: Implement calls of UserLocalCommunicationService - Implement `IUserServiceCreator: CreateUserLocalCommunicationService` according to RE. - Implement `IUserLocalCommunicationService` calls: - Every calls in this interface are layered to `NetworkInterface`. - `GetState` according to RE. - `InitializeOld`, `Initialize` and `Finalize` stubbed with the appropriate result code and some TODO according to RE. - `AttachStateChangeEvent` according to RE. * Fix var name and TODO comments * Fix review
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs b/Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs
index 052727dd..3fc9ce1c 100644
--- a/Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs
+++ b/Ryujinx.HLE/HOS/Services/Ldn/IUserServiceCreator.cs
@@ -1,8 +1,19 @@
-namespace Ryujinx.HLE.HOS.Services.Ldn
+using Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator;
+
+namespace Ryujinx.HLE.HOS.Services.Ldn
{
[Service("ldn:u")]
class IUserServiceCreator : IpcService
{
public IUserServiceCreator(ServiceCtx context) { }
+
+ [Command(0)]
+ // CreateUserLocalCommunicationService() -> object<nn::ldn::detail::IUserLocalCommunicationService>
+ public ResultCode CreateUserLocalCommunicationService(ServiceCtx context)
+ {
+ MakeObject(context, new IUserLocalCommunicationService(context));
+
+ return ResultCode.Success;
+ }
}
} \ No newline at end of file