aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/OsTypes/InterProcessEventType.cs
blob: 39c93e570814648f8bce87c5831d2a1d0813b676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
namespace Ryujinx.Horizon.Sdk.OsTypes
{
    struct InterProcessEventType
    {
        public readonly bool AutoClear;
        public InitializationState State;
        public bool ReadableHandleManaged;
        public bool WritableHandleManaged;
        public int ReadableHandle;
        public int WritableHandle;

        public InterProcessEventType(
            bool autoClear,
            bool readableHandleManaged,
            bool writableHandleManaged,
            int readableHandle,
            int writableHandle)
        {
            AutoClear = autoClear;
            State = InitializationState.Initialized;
            ReadableHandleManaged = readableHandleManaged;
            WritableHandleManaged = writableHandleManaged;
            ReadableHandle = readableHandle;
            WritableHandle = writableHandle;
        }
    }
}