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