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