summaryrefslogtreecommitdiff
path: root/lib/Djup.Native/LibDjup.cs
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2024-10-06 11:25:49 +0300
committerJoel Stålnacke <joel@saker.fi>2024-10-06 11:25:49 +0300
commit11e09f477480531487cd12b5c107ac1d8352a7a5 (patch)
tree19ce8424608fa9dd617208d8ed60da7a2a2b4287 /lib/Djup.Native/LibDjup.cs
Initial commit
Diffstat (limited to 'lib/Djup.Native/LibDjup.cs')
-rw-r--r--lib/Djup.Native/LibDjup.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Djup.Native/LibDjup.cs b/lib/Djup.Native/LibDjup.cs
new file mode 100644
index 0000000..5e6db83
--- /dev/null
+++ b/lib/Djup.Native/LibDjup.cs
@@ -0,0 +1,12 @@
+using System.Runtime.InteropServices;
+
+namespace Djup.Native;
+
+public static partial class LibDjup
+{
+ const string LibraryName = "djup";
+ const string Prefix = "dp_";
+
+ [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(hello_world))]
+ public static partial void hello_world();
+}