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