diff --git a/csbindgen/Cargo.toml b/csbindgen/Cargo.toml index 9cd20f1..0108df7 100644 --- a/csbindgen/Cargo.toml +++ b/csbindgen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "csbindgen" -version = "1.6.0" +version = "1.7.0" edition = "2021" authors = [ "Yoshifumi Kawai ", diff --git a/dotnet-sandbox/NativeMethods.cs b/dotnet-sandbox/NativeMethods.cs index b0d2e0f..b7a9deb 100644 --- a/dotnet-sandbox/NativeMethods.cs +++ b/dotnet-sandbox/NativeMethods.cs @@ -91,13 +91,13 @@ namespace CsBindgen public static extern int my_add(int x, int y); [DllImport(__DllName, EntryPoint = "create_counter_context", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern counter_context* create_counter_context(); + public static extern CounterContext* create_counter_context(); [DllImport(__DllName, EntryPoint = "counter_context_insert", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void counter_context_insert(counter_context* context, int value); + public static extern void counter_context_insert(CounterContext* context, int value); [DllImport(__DllName, EntryPoint = "destroy_counter_context", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern void destroy_counter_context(counter_context* context); + public static extern void destroy_counter_context(CounterContext* context); [DllImport(__DllName, EntryPoint = "pass_vector3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void pass_vector3(MyVector3 v3); @@ -187,7 +187,7 @@ namespace CsBindgen } [StructLayout(LayoutKind.Sequential)] - internal unsafe partial struct counter_context + internal unsafe partial struct CounterContext { }