2023-01-04 23:15:45 +01:00
|
|
|
|
using Ryujinx.Horizon.Sdk.Sf.Hipc;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Horizon.Sdk.Sf
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
|
|
|
class BufferAttribute : Attribute
|
|
|
|
|
{
|
2023-01-08 13:13:39 +01:00
|
|
|
|
public HipcBufferFlags Flags { get; }
|
|
|
|
|
public ushort FixedSize { get; }
|
2023-01-04 23:15:45 +01:00
|
|
|
|
|
|
|
|
|
public BufferAttribute(HipcBufferFlags flags)
|
|
|
|
|
{
|
|
|
|
|
Flags = flags;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BufferAttribute(HipcBufferFlags flags, ushort fixedSize)
|
|
|
|
|
{
|
2023-01-08 13:13:39 +01:00
|
|
|
|
Flags = flags | HipcBufferFlags.FixedSize;
|
2023-01-04 23:15:45 +01:00
|
|
|
|
FixedSize = fixedSize;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
|
|
|
class ClientProcessIdAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
|
|
|
class CopyHandleAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
|
|
|
class MoveHandleAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
}
|
2023-01-08 13:13:39 +01:00
|
|
|
|
}
|