Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: python3 tools/objectgen.py "${{ steps.provision.outputs.catalog-path }}" --report

- name: Report binding drift
run: git --no-pager diff --stat -- MEOS.NET/Internal MEOS.NET/Types/Generated || true
run: git --no-pager diff --stat -- MEOS.NET/Functions MEOS.NET/Types/Generated || true

- name: Build solution
run: dotnet build MEOS.NET.sln -c Release
Expand Down
15,618 changes: 15,618 additions & 0 deletions MEOS.NET/Functions/Meos.Native.g.cs

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions MEOS.NET/Functions/Meos.hashtable.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using System.Runtime.InteropServices;

namespace MEOS.NET.Functions
{
/// <summary>The MEOS functions <c>hashtable.h</c> declares.</summary>
public static partial class Meos
{
public static uint Hash(IntPtr h, IntPtr k)
=> SafeExecution<uint>(() => Native.Hash(h, k));

public static IntPtr CreateHashtable(uint minsize, IntPtr hashfunction, IntPtr key_eq_fn)
=> SafeExecution<IntPtr>(() => Native.CreateHashtable(minsize, hashfunction, key_eq_fn));

public static IntPtr CreateStringHashtable()
=> SafeExecution<IntPtr>(() => Native.CreateStringHashtable());

public static int HashtableInsert(IntPtr h, IntPtr k, IntPtr v)
=> SafeExecution<int>(() => Native.HashtableInsert(h, k, v));

public static IntPtr HashtableSearch(IntPtr h, IntPtr k)
=> SafeExecution<IntPtr>(() => Native.HashtableSearch(h, k));

public static IntPtr HashtableRemove(IntPtr h, IntPtr k)
=> SafeExecution<IntPtr>(() => Native.HashtableRemove(h, k));

public static uint HashStr(IntPtr str)
=> SafeExecution<uint>(() => Native.HashStr(str));

public static int StrEq(IntPtr str1, IntPtr str2)
=> SafeExecution<int>(() => Native.StrEq(str1, str2));

public static uint HashtableCount(IntPtr h)
=> SafeExecution<uint>(() => Native.HashtableCount(h));

public static void HashtableDestroy(IntPtr h, int free_values)
=> SafeExecution(() => Native.HashtableDestroy(h, free_values));

public static uint IndexFor(uint tablelength, uint hashvalue)
=> SafeExecution<uint>(() => Native.IndexFor(tablelength, hashvalue));

}
}
5,034 changes: 5,034 additions & 0 deletions MEOS.NET/Functions/Meos.meos.g.cs

Large diffs are not rendered by default.

258 changes: 258 additions & 0 deletions MEOS.NET/Functions/Meos.meos_catalog.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
using System.Runtime.InteropServices;

namespace MEOS.NET.Functions
{
/// <summary>The MEOS functions <c>meos_catalog.h</c> declares.</summary>
public static partial class Meos
{
public static bool TemptypeSubtype(int subtype)
=> SafeExecution<bool>(() => Native.TemptypeSubtype(subtype));

public static bool TemptypeSubtypeAll(int subtype)
=> SafeExecution<bool>(() => Native.TemptypeSubtypeAll(subtype));

public static string? TempsubtypeName(int subtype)

Check warning on line 14 in MEOS.NET/Functions/Meos.meos_catalog.g.cs

View workflow job for this annotation

GitHub Actions / Regenerate, build and smoke-test against MEOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
=> Marshal.PtrToStringUTF8(SafeExecution<IntPtr>(() => Native.TempsubtypeName(subtype)));

public static bool TempsubtypeFromString(string str, IntPtr subtype)
=> SafeExecution<bool>(() => Native.TempsubtypeFromString(str, subtype));

public static string? MeosoperName(int oper)

Check warning on line 20 in MEOS.NET/Functions/Meos.meos_catalog.g.cs

View workflow job for this annotation

GitHub Actions / Regenerate, build and smoke-test against MEOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
=> Marshal.PtrToStringUTF8(SafeExecution<IntPtr>(() => Native.MeosoperName(oper)));

public static int MeosoperFromString(string name)
=> SafeExecution<int>(() => Native.MeosoperFromString(name));

public static string? InterptypeName(int interp)

Check warning on line 26 in MEOS.NET/Functions/Meos.meos_catalog.g.cs

View workflow job for this annotation

GitHub Actions / Regenerate, build and smoke-test against MEOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
=> Marshal.PtrToStringUTF8(SafeExecution<IntPtr>(() => Native.InterptypeName(interp)));

public static int InterptypeFromString(string interp_str)
=> SafeExecution<int>(() => Native.InterptypeFromString(interp_str));

public static int MeosTypeofHexwkb(string hexwkb)
=> SafeExecution<int>(() => Native.MeosTypeofHexwkb(hexwkb));

public static string? MeostypeName(int type)

Check warning on line 35 in MEOS.NET/Functions/Meos.meos_catalog.g.cs

View workflow job for this annotation

GitHub Actions / Regenerate, build and smoke-test against MEOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
=> Marshal.PtrToStringUTF8(SafeExecution<IntPtr>(() => Native.MeostypeName(type)));

public static int TemptypeBasetype(int type)
=> SafeExecution<int>(() => Native.TemptypeBasetype(type));

public static int SettypeBasetype(int type)
=> SafeExecution<int>(() => Native.SettypeBasetype(type));

public static int SpantypeBasetype(int type)
=> SafeExecution<int>(() => Native.SpantypeBasetype(type));

public static int SpantypeSpansettype(int type)
=> SafeExecution<int>(() => Native.SpantypeSpansettype(type));

public static int SpansettypeSpantype(int type)
=> SafeExecution<int>(() => Native.SpansettypeSpantype(type));

public static int BasetypeSpantype(int type)
=> SafeExecution<int>(() => Native.BasetypeSpantype(type));

public static int BasetypeSettype(int type)
=> SafeExecution<int>(() => Native.BasetypeSettype(type));

public static bool TnumberBasetype(int type)
=> SafeExecution<bool>(() => Native.TnumberBasetype(type));

public static bool GeoBasetype(int type)
=> SafeExecution<bool>(() => Native.GeoBasetype(type));

public static bool MeosBasetype(int type)
=> SafeExecution<bool>(() => Native.MeosBasetype(type));

public static bool AlphanumBasetype(int type)
=> SafeExecution<bool>(() => Native.AlphanumBasetype(type));

public static bool AlphanumTemptype(int type)
=> SafeExecution<bool>(() => Native.AlphanumTemptype(type));

public static bool TimeType(int type)
=> SafeExecution<bool>(() => Native.TimeType(type));

public static bool SetBasetype(int type)
=> SafeExecution<bool>(() => Native.SetBasetype(type));

public static bool SetType(int type)
=> SafeExecution<bool>(() => Native.SetType(type));

public static bool NumsetType(int type)
=> SafeExecution<bool>(() => Native.NumsetType(type));

public static bool EnsureNumsetType(int type)
=> SafeExecution<bool>(() => Native.EnsureNumsetType(type));

public static bool TimesetType(int type)
=> SafeExecution<bool>(() => Native.TimesetType(type));

public static bool SetSpantype(int type)
=> SafeExecution<bool>(() => Native.SetSpantype(type));

public static bool EnsureSetSpantype(int type)
=> SafeExecution<bool>(() => Native.EnsureSetSpantype(type));

public static bool AlphanumsetType(int settype)
=> SafeExecution<bool>(() => Native.AlphanumsetType(settype));

public static bool GeosetType(int type)
=> SafeExecution<bool>(() => Native.GeosetType(type));

public static bool EnsureGeosetType(int type)
=> SafeExecution<bool>(() => Native.EnsureGeosetType(type));

public static bool SpatialsetType(int type)
=> SafeExecution<bool>(() => Native.SpatialsetType(type));

public static bool EnsureSpatialsetType(int type)
=> SafeExecution<bool>(() => Native.EnsureSpatialsetType(type));

public static bool PointcloudBasetype(int type)
=> SafeExecution<bool>(() => Native.PointcloudBasetype(type));

public static bool PointcloudsetType(int type)
=> SafeExecution<bool>(() => Native.PointcloudsetType(type));

public static bool TpointcloudTemptype(int type)
=> SafeExecution<bool>(() => Native.TpointcloudTemptype(type));

public static bool EnsureTpointcloudTemptype(int type)
=> SafeExecution<bool>(() => Native.EnsureTpointcloudTemptype(type));

public static bool SpanBasetype(int type)
=> SafeExecution<bool>(() => Native.SpanBasetype(type));

public static bool SpanCanonBasetype(int type)
=> SafeExecution<bool>(() => Native.SpanCanonBasetype(type));

public static bool SpanType(int type)
=> SafeExecution<bool>(() => Native.SpanType(type));

public static bool TypeSpanBbox(int type)
=> SafeExecution<bool>(() => Native.TypeSpanBbox(type));

public static int TypeBboxtype(int type)
=> SafeExecution<int>(() => Native.TypeBboxtype(type));

public static bool SpanTboxType(int type)
=> SafeExecution<bool>(() => Native.SpanTboxType(type));

public static bool EnsureSpanTboxType(int type)
=> SafeExecution<bool>(() => Native.EnsureSpanTboxType(type));

public static bool NumspanBasetype(int type)
=> SafeExecution<bool>(() => Native.NumspanBasetype(type));

public static bool NumspanType(int type)
=> SafeExecution<bool>(() => Native.NumspanType(type));

public static bool EnsureNumspanType(int type)
=> SafeExecution<bool>(() => Native.EnsureNumspanType(type));

public static bool TimespanBasetype(int type)
=> SafeExecution<bool>(() => Native.TimespanBasetype(type));

public static bool TimespanType(int type)
=> SafeExecution<bool>(() => Native.TimespanType(type));

public static bool SpansetType(int type)
=> SafeExecution<bool>(() => Native.SpansetType(type));

public static bool TimespansetType(int type)
=> SafeExecution<bool>(() => Native.TimespansetType(type));

public static bool EnsureTimespansetType(int type)
=> SafeExecution<bool>(() => Native.EnsureTimespansetType(type));

public static bool TemporalType(int type)
=> SafeExecution<bool>(() => Native.TemporalType(type));

public static bool TemporalBasetype(int type)
=> SafeExecution<bool>(() => Native.TemporalBasetype(type));

public static bool TemptypeSupportsLinear(int type)
=> SafeExecution<bool>(() => Native.TemptypeSupportsLinear(type));

public static bool BasetypeByvalue(int type)
=> SafeExecution<bool>(() => Native.BasetypeByvalue(type));

public static bool BasetypeVarlength(int type)
=> SafeExecution<bool>(() => Native.BasetypeVarlength(type));

public static short MeostypeLength(int type)
=> SafeExecution<short>(() => Native.MeostypeLength(type));

public static bool TalphanumType(int type)
=> SafeExecution<bool>(() => Native.TalphanumType(type));

public static bool TalphaType(int type)
=> SafeExecution<bool>(() => Native.TalphaType(type));

public static bool TnumberType(int type)
=> SafeExecution<bool>(() => Native.TnumberType(type));

public static bool EnsureTnumberType(int type)
=> SafeExecution<bool>(() => Native.EnsureTnumberType(type));

public static bool TorderType(int type)
=> SafeExecution<bool>(() => Native.TorderType(type));

public static bool EnsureTorderType(int type)
=> SafeExecution<bool>(() => Native.EnsureTorderType(type));

public static bool EnsureTnumberBasetype(int type)
=> SafeExecution<bool>(() => Native.EnsureTnumberBasetype(type));

public static bool TnumberSpantype(int type)
=> SafeExecution<bool>(() => Native.TnumberSpantype(type));

public static bool SpatialBasetype(int type)
=> SafeExecution<bool>(() => Native.SpatialBasetype(type));

public static bool TspatialType(int type)
=> SafeExecution<bool>(() => Native.TspatialType(type));

public static bool EnsureTspatialType(int type)
=> SafeExecution<bool>(() => Native.EnsureTspatialType(type));

public static bool TpointType(int type)
=> SafeExecution<bool>(() => Native.TpointType(type));

public static bool EnsureTpointType(int type)
=> SafeExecution<bool>(() => Native.EnsureTpointType(type));

public static bool TgeoType(int type)
=> SafeExecution<bool>(() => Native.TgeoType(type));

public static bool EnsureTgeoType(int type)
=> SafeExecution<bool>(() => Native.EnsureTgeoType(type));

public static bool TspatialBodyType(int type)
=> SafeExecution<bool>(() => Native.TspatialBodyType(type));

public static bool TgeoTypeAll(int type)
=> SafeExecution<bool>(() => Native.TgeoTypeAll(type));

public static bool EnsureTgeoTypeAll(int type)
=> SafeExecution<bool>(() => Native.EnsureTgeoTypeAll(type));

public static bool TgeometryType(int type)
=> SafeExecution<bool>(() => Native.TgeometryType(type));

public static bool EnsureTgeometryType(int type)
=> SafeExecution<bool>(() => Native.EnsureTgeometryType(type));

public static bool TgeodeticType(int type)
=> SafeExecution<bool>(() => Native.TgeodeticType(type));

public static bool EnsureTgeodeticType(int type)
=> SafeExecution<bool>(() => Native.EnsureTgeodeticType(type));

public static bool EnsureTnumberTpointType(int type)
=> SafeExecution<bool>(() => Native.EnsureTnumberTpointType(type));

}
}
Loading
Loading