summaryrefslogtreecommitdiff
path: root/FFI.java
diff options
context:
space:
mode:
authorcos <cos>2020-03-22 19:08:12 +0100
committercos <cos>2020-03-22 19:08:12 +0100
commit5151e6766f3686a8bef475fc90aee794274ab3c9 (patch)
tree21a6abfdce2ac6035a397a3e356e39485ca4df76 /FFI.java
downloadhello_rust_example-android-5151e6766f3686a8bef475fc90aee794274ab3c9.zip
Initial (and likely only) commitHEADmaster
Diffstat (limited to 'FFI.java')
-rw-r--r--FFI.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/FFI.java b/FFI.java
new file mode 100644
index 0000000..8104b2f
--- /dev/null
+++ b/FFI.java
@@ -0,0 +1,10 @@
+package rs.cph.hellorust;
+
+public class FFI {
+
+ private static native String func(final String pattern);
+
+ public String runFunc(String to) {
+ return func(to);
+ }
+}