aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Horizon/Sm/Impl/ServiceInfo.cs
blob: 50c18a2c9710dcc6601d3634693355c835a91922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Ryujinx.Horizon.Sdk.Sm;

namespace Ryujinx.Horizon.Sm.Impl
{
    struct ServiceInfo
    {
        public ServiceName Name;
        public ulong       OwnerProcessId;
        public int         PortHandle;

        public void Free()
        {
            HorizonStatic.Syscall.CloseHandle(PortHandle);

            Name           = ServiceName.Invalid;
            OwnerProcessId = 0L;
            PortHandle     = 0;
        }
    }
}