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