checkpoint
This commit is contained in:
34
Alpm/Depend.cs
Normal file
34
Alpm/Depend.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Foodsoft.Alpm
|
||||
{
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[SuppressMessage("ReSharper", "ConvertToConstant.Local")]
|
||||
public class Depend
|
||||
{
|
||||
public enum ModType
|
||||
{
|
||||
Any = 1,
|
||||
Equal,
|
||||
GreaterThanOrEqual,
|
||||
LessThanOrEqual,
|
||||
GreaterThan,
|
||||
LessThan
|
||||
}
|
||||
|
||||
[field: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8OutMarshaler))]
|
||||
public string Name { get; } = null!;
|
||||
|
||||
[field: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8OutMarshaler))]
|
||||
public string Version { get; } = null!;
|
||||
|
||||
[field: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8OutMarshaler))]
|
||||
public string Description { get; } = null!;
|
||||
|
||||
public ulong NameHash { get; } = 0;
|
||||
public ModType Mod { get; } = ModType.Any;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user