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