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