aboutsummaryrefslogtreecommitdiff
path: root/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h
diff options
context:
space:
mode:
authorGravatar Daniel J. Leach <daniel.j.leach@gmail.com>2019-04-25 14:40:45 -0500
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-06-30 17:32:34 +0200
commit6aee78c89413b39ed4f674ebb0482d84e384672f (patch)
tree102f3169ee1b60e792d433458e8a5996575d6458 /support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h
parent7e99d1de50a9b98fb976e8074dd25740cd6440cc (diff)
downloadbuildroot-6aee78c89413b39ed4f674ebb0482d84e384672f.tar.gz
buildroot-6aee78c89413b39ed4f674ebb0482d84e384672f.tar.bz2
support/testing: openjdk JNI test cases
This test case builds a native library and ensures a Java class can load and interact with the native library. The test also verifies Java code can make system calls via the native library. Signed-off-by: Daniel J. Leach <dleach@belcan.com> Acked-by: Matthew Weber <matthew.weber@rockwellcollins.com> Tested-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h')
-rw-r--r--support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h b/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h
new file mode 100644
index 0000000000..a25f1779db
--- /dev/null
+++ b/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/native.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <stddef.h>
+
+const char* read_constant_string();
+const char* read_internal_string();
+void write_internal_string(const char* string);
+void write_external_string(char* string, size_t maxLength);
+void execute_function(void(*function)(void*), void* context);
+void set_time_in_seconds(int seconds);
+void write_internal_time_in_seconds();