mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-23 06:56:27 +00:00
Update cargo.toml version to 1.7.0
This commit is contained in:
parent
af9c0455c7
commit
2a7175daf7
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "csbindgen"
|
name = "csbindgen"
|
||||||
version = "1.6.0"
|
version = "1.7.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [
|
authors = [
|
||||||
"Yoshifumi Kawai <ils@neue.cc>",
|
"Yoshifumi Kawai <ils@neue.cc>",
|
||||||
|
8
dotnet-sandbox/NativeMethods.cs
vendored
8
dotnet-sandbox/NativeMethods.cs
vendored
@ -91,13 +91,13 @@ namespace CsBindgen
|
|||||||
public static extern int my_add(int x, int y);
|
public static extern int my_add(int x, int y);
|
||||||
|
|
||||||
[DllImport(__DllName, EntryPoint = "create_counter_context", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
[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)]
|
[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)]
|
[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)]
|
[DllImport(__DllName, EntryPoint = "pass_vector3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||||
public static extern void pass_vector3(MyVector3 v3);
|
public static extern void pass_vector3(MyVector3 v3);
|
||||||
@ -187,7 +187,7 @@ namespace CsBindgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
internal unsafe partial struct counter_context
|
internal unsafe partial struct CounterContext
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user