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