aboutsummaryrefslogtreecommitdiff
path: root/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/JniWrapper.c
blob: 0dde4e0c28e4a466f5041b3c9e3fcc2d2a2f11a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "JniWrapper.h"
#include "jni_helper.h"

// Proxies the generated function calls to the jni_helper

JNIEXPORT jint JNICALL Java_JniWrapper_get_1jni_1version
	(JNIEnv* env, jclass class)
{
	return get_jni_version(env);
}
JNIEXPORT jstring JNICALL Java_JniWrapper_read_1constant_1string
	(JNIEnv* env, jclass class)
{
	return read_constant_jstring(env);
}
JNIEXPORT jstring JNICALL Java_JniWrapper_write_1string
	(JNIEnv* env, jclass class, jstring string)
{
	return write_jstring(env, string);
}
JNIEXPORT jstring JNICALL Java_JniWrapper_write_1char_1array
	(JNIEnv* env, jclass class, jcharArray chars)
{
	return write_jchar_array(env, chars);
}
JNIEXPORT jstring JNICALL Java_JniWrapper_write_1string_1member
	(JNIEnv* env, jclass class, jobject helper)
{
	return write_string_member(env, helper);
}
JNIEXPORT void JNICALL Java_JniWrapper_set_1string_1member
	(JNIEnv* env, jclass class, jobject helper)
{
	set_string_member(env, helper);
}
JNIEXPORT void JNICALL Java_JniWrapper_execute_1java_1function
	(JNIEnv* env, jclass class, jobject helper)
{
	execute_java_function(env, helper);
}
JNIEXPORT jobject JNICALL Java_JniWrapper_instantiate_1java_1class
	(JNIEnv* env, jclass class)
{
	return instantiate_java_class(env);
}
JNIEXPORT jstring JNICALL Java_JniWrapper_set_1and_1write_1time_1in_1seconds
	(JNIEnv* env, jclass class, jint seconds)
{
	return set_and_write_time_in_seconds(env, seconds);
}