aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerSession.cs
blob: a17300823cd8b141f6ae0bc9f2575fdec8c7e8a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Ryujinx.Horizon.Sdk.OsTypes;
using Ryujinx.Horizon.Sdk.Sf.Cmif;

namespace Ryujinx.Horizon.Sdk.Sf.Hipc
{
    class ServerSession : MultiWaitHolderOfHandle
    {
        public ServiceObjectHolder ServiceObjectHolder { get; set; }
        public PointerAndSize      PointerBuffer       { get; set; }
        public PointerAndSize      SavedMessage        { get; set; }
        public int                 SessionIndex        { get; }
        public int                 SessionHandle       { get; }
        public bool                IsClosed            { get; set; }
        public bool                HasReceived         { get; set; }

        public ServerSession(int index, int handle, ServiceObjectHolder obj) : base(handle)
        {
            ServiceObjectHolder = obj;
            SessionIndex        = index;
            SessionHandle       = handle;
        }
    }
}