aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sm/Impl/ServiceInfo.cs
blob: 39ed57cebcef027373af278aac6853b5d6637391 (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;
        }
    }
}