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
This commit is contained in:
Ac_K 2019-11-21 13:24:06 +01:00 committed by Thog
parent ee81ab547e
commit cfcc360d06
6 changed files with 189 additions and 1 deletions

View file

@ -0,0 +1,16 @@
namespace Ryujinx.HLE.HOS.Services.Ldn
{
enum ResultCode
{
ModuleId = 203,
ErrorCodeShift = 9,
Success = 0,
DeviceDisabled = (22 << ErrorCodeShift) | ModuleId,
InvalidState = (32 << ErrorCodeShift) | ModuleId,
Unknown1 = (48 << ErrorCodeShift) | ModuleId,
InvalidArgument = (96 << ErrorCodeShift) | ModuleId,
InvalidOjbect = (97 << ErrorCodeShift) | ModuleId,
}
}