2023-01-04 23:15:45 +01:00
|
|
|
|
using Ryujinx.Horizon.Sdk.OsTypes;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Sf.Cmif;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Sm;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Sf.Hipc
|
|
|
|
|
{
|
|
|
|
|
class Server : MultiWaitHolderOfHandle
|
|
|
|
|
{
|
2023-01-08 13:13:39 +01:00
|
|
|
|
public int PortIndex { get; }
|
|
|
|
|
public int PortHandle { get; }
|
|
|
|
|
public ServiceName Name { get; }
|
|
|
|
|
public bool Managed { get; }
|
2023-01-04 23:15:45 +01:00
|
|
|
|
public ServiceObjectHolder StaticObject { get; }
|
|
|
|
|
|
|
|
|
|
public Server(
|
2023-01-08 13:13:39 +01:00
|
|
|
|
int portIndex,
|
|
|
|
|
int portHandle,
|
|
|
|
|
ServiceName name,
|
|
|
|
|
bool managed,
|
2023-01-04 23:15:45 +01:00
|
|
|
|
ServiceObjectHolder staticHoder) : base(portHandle)
|
|
|
|
|
{
|
|
|
|
|
PortHandle = portHandle;
|
2023-01-08 13:13:39 +01:00
|
|
|
|
Name = name;
|
|
|
|
|
Managed = managed;
|
2023-01-04 23:15:45 +01:00
|
|
|
|
|
|
|
|
|
if (staticHoder != null)
|
|
|
|
|
{
|
|
|
|
|
StaticObject = staticHoder;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PortIndex = portIndex;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|