2023-01-04 22:15:45 +00: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 12:13:39 +00:00
|
|
|
|
public int PortIndex { get; }
|
|
|
|
|
public int PortHandle { get; }
|
|
|
|
|
public ServiceName Name { get; }
|
|
|
|
|
public bool Managed { get; }
|
2023-01-04 22:15:45 +00:00
|
|
|
|
public ServiceObjectHolder StaticObject { get; }
|
|
|
|
|
|
|
|
|
|
public Server(
|
2023-01-08 12:13:39 +00:00
|
|
|
|
int portIndex,
|
|
|
|
|
int portHandle,
|
|
|
|
|
ServiceName name,
|
|
|
|
|
bool managed,
|
2023-01-04 22:15:45 +00:00
|
|
|
|
ServiceObjectHolder staticHoder) : base(portHandle)
|
|
|
|
|
{
|
|
|
|
|
PortHandle = portHandle;
|
2023-01-08 12:13:39 +00:00
|
|
|
|
Name = name;
|
|
|
|
|
Managed = managed;
|
2023-01-04 22:15:45 +00:00
|
|
|
|
|
|
|
|
|
if (staticHoder != null)
|
|
|
|
|
{
|
|
|
|
|
StaticObject = staticHoder;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
PortIndex = portIndex;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|