aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Sf/Hipc/ManagerOptions.cs
blob: aa0135aa58d9c83060414205304bf6d5b1dcf607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace Ryujinx.Horizon.Sdk.Sf.Hipc
{
    readonly struct ManagerOptions
    {
        public static ManagerOptions Default => new(0, 0, 0, false);

        public int PointerBufferSize { get; }
        public int MaxDomains { get; }
        public int MaxDomainObjects { get; }
        public bool CanDeferInvokeRequest { get; }

        public ManagerOptions(int pointerBufferSize, int maxDomains, int maxDomainObjects, bool canDeferInvokeRequest)
        {
            PointerBufferSize = pointerBufferSize;
            MaxDomains = maxDomains;
            MaxDomainObjects = maxDomainObjects;
            CanDeferInvokeRequest = canDeferInvokeRequest;
        }
    }
}