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