2023-01-04 23:15:45 +01:00
|
|
|
|
using Ryujinx.Horizon.Sdk.Sm;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Horizon.Sm.Impl
|
|
|
|
|
{
|
|
|
|
|
struct ServiceInfo
|
|
|
|
|
{
|
|
|
|
|
public ServiceName Name;
|
2023-01-08 13:13:39 +01:00
|
|
|
|
public ulong OwnerProcessId;
|
|
|
|
|
public int PortHandle;
|
2023-01-04 23:15:45 +01:00
|
|
|
|
|
|
|
|
|
public void Free()
|
|
|
|
|
{
|
|
|
|
|
HorizonStatic.Syscall.CloseHandle(PortHandle);
|
|
|
|
|
|
2023-01-08 13:13:39 +01:00
|
|
|
|
Name = ServiceName.Invalid;
|
2023-01-04 23:15:45 +01:00
|
|
|
|
OwnerProcessId = 0L;
|
2023-01-08 13:13:39 +01:00
|
|
|
|
PortHandle = 0;
|
2023-01-04 23:15:45 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 13:13:39 +01:00
|
|
|
|
}
|