From 2a7175daf73bd26cf90fed7e0e6f2401387f1a25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 11:32:52 +0000 Subject: [PATCH] Update cargo.toml version to 1.7.0 --- csbindgen/Cargo.toml | 2 +- dotnet-sandbox/NativeMethods.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 { }