mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-27 17:46:02 +00:00
37 lines
919 B
C#
37 lines
919 B
C#
|
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
|
|||
|
{
|
|||
|
public int PortIndex { get; }
|
|||
|
public int PortHandle { get; }
|
|||
|
public ServiceName Name { get; }
|
|||
|
public bool Managed { get; }
|
|||
|
public ServiceObjectHolder StaticObject { get; }
|
|||
|
|
|||
|
public Server(
|
|||
|
int portIndex,
|
|||
|
int portHandle,
|
|||
|
ServiceName name,
|
|||
|
bool managed,
|
|||
|
ServiceObjectHolder staticHoder) : base(portHandle)
|
|||
|
{
|
|||
|
PortHandle = portHandle;
|
|||
|
Name = name;
|
|||
|
Managed = managed;
|
|||
|
|
|||
|
if (staticHoder != null)
|
|||
|
{
|
|||
|
StaticObject = staticHoder;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
PortIndex = portIndex;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|