| 1 |
// Code generated by gobind. DO NOT EDIT. |
| 2 |
|
| 3 |
// JNI functions for the Go <=> Java bridge. |
| 4 |
// |
| 5 |
// autogenerated by gobind -lang=java issue10788 |
| 6 |
|
| 7 |
#include <android/log.h> |
| 8 |
#include <stdint.h> |
| 9 |
#include "seq.h" |
| 10 |
#include "_cgo_export.h" |
| 11 |
#include "issue10788.h" |
| 12 |
|
| 13 |
jclass proxy_class_issue10788_TestInterface; |
| 14 |
jmethodID proxy_class_issue10788_TestInterface_cons; |
| 15 |
static jmethodID mid_TestInterface_DoSomeWork; |
| 16 |
static jmethodID mid_TestInterface_MultipleUnnamedParams; |
| 17 |
jclass proxy_class_issue10788_TestStruct; |
| 18 |
jmethodID proxy_class_issue10788_TestStruct_cons; |
| 19 |
|
| 20 |
JNIEXPORT void JNICALL |
| 21 |
Java_issue10788_Issue10788__1init(JNIEnv *env, jclass _unused) { |
| 22 |
jclass clazz; |
| 23 |
clazz = (*env)->FindClass(env, "issue10788/TestStruct"); |
| 24 |
proxy_class_issue10788_TestStruct = (*env)->NewGlobalRef(env, clazz); |
| 25 |
proxy_class_issue10788_TestStruct_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); |
| 26 |
clazz = (*env)->FindClass(env, "issue10788/Issue10788$proxyTestInterface"); |
| 27 |
proxy_class_issue10788_TestInterface = (*env)->NewGlobalRef(env, clazz); |
| 28 |
proxy_class_issue10788_TestInterface_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); |
| 29 |
clazz = (*env)->FindClass(env, "issue10788/TestInterface"); |
| 30 |
mid_TestInterface_DoSomeWork = (*env)->GetMethodID(env, clazz, "doSomeWork", "(Lissue10788/TestStruct;)V"); |
| 31 |
mid_TestInterface_MultipleUnnamedParams = (*env)->GetMethodID(env, clazz, "multipleUnnamedParams", "(JLjava/lang/String;J)V"); |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
JNIEXPORT jint JNICALL |
| 36 |
Java_issue10788_TestStruct__1_1New(JNIEnv *env, jclass clazz) { |
| 37 |
return new_issue10788_TestStruct(); |
| 38 |
} |
| 39 |
|
| 40 |
JNIEXPORT void JNICALL |
| 41 |
Java_issue10788_TestStruct_setValue(JNIEnv *env, jobject this, jstring v) { |
| 42 |
int32_t o = go_seq_to_refnum_go(env, this); |
| 43 |
nstring _v = go_seq_from_java_string(env, v); |
| 44 |
proxyissue10788_TestStruct_Value_Set(o, _v); |
| 45 |
} |
| 46 |
|
| 47 |
JNIEXPORT jstring JNICALL |
| 48 |
Java_issue10788_TestStruct_getValue(JNIEnv *env, jobject this) { |
| 49 |
int32_t o = go_seq_to_refnum_go(env, this); |
| 50 |
nstring r0 = proxyissue10788_TestStruct_Value_Get(o); |
| 51 |
jstring _r0 = go_seq_to_java_string(env, r0); |
| 52 |
return _r0; |
| 53 |
} |
| 54 |
|
| 55 |
JNIEXPORT void JNICALL |
| 56 |
Java_issue10788_Issue10788_00024proxyTestInterface_doSomeWork(JNIEnv* env, jobject __this__, jobject s) { |
| 57 |
int32_t o = go_seq_to_refnum_go(env, __this__); |
| 58 |
int32_t _s = go_seq_to_refnum(env, s); |
| 59 |
proxyissue10788_TestInterface_DoSomeWork(o, _s); |
| 60 |
} |
| 61 |
|
| 62 |
void cproxyissue10788_TestInterface_DoSomeWork(int32_t refnum, int32_t s) { |
| 63 |
JNIEnv *env = go_seq_push_local_frame(1); |
| 64 |
jobject o = go_seq_from_refnum(env, refnum, proxy_class_issue10788_TestInterface, proxy_class_issue10788_TestInterface_cons); |
| 65 |
jobject _s = go_seq_from_refnum(env, s, proxy_class_issue10788_TestStruct, proxy_class_issue10788_TestStruct_cons); |
| 66 |
(*env)->CallVoidMethod(env, o, mid_TestInterface_DoSomeWork, _s); |
| 67 |
go_seq_pop_local_frame(env); |
| 68 |
} |
| 69 |
|
| 70 |
JNIEXPORT void JNICALL |
| 71 |
Java_issue10788_Issue10788_00024proxyTestInterface_multipleUnnamedParams(JNIEnv* env, jobject __this__, jlong p0, jstring p1, jlong p2) { |
| 72 |
int32_t o = go_seq_to_refnum_go(env, __this__); |
| 73 |
nint _p0 = (nint)p0; |
| 74 |
nstring _p1 = go_seq_from_java_string(env, p1); |
| 75 |
int64_t _p2 = (int64_t)p2; |
| 76 |
proxyissue10788_TestInterface_MultipleUnnamedParams(o, _p0, _p1, _p2); |
| 77 |
} |
| 78 |
|
| 79 |
void cproxyissue10788_TestInterface_MultipleUnnamedParams(int32_t refnum, nint p0, nstring p1, int64_t p2) { |
| 80 |
JNIEnv *env = go_seq_push_local_frame(3); |
| 81 |
jobject o = go_seq_from_refnum(env, refnum, proxy_class_issue10788_TestInterface, proxy_class_issue10788_TestInterface_cons); |
| 82 |
jlong _p0 = (jlong)p0; |
| 83 |
jstring _p1 = go_seq_to_java_string(env, p1); |
| 84 |
jlong _p2 = (jlong)p2; |
| 85 |
(*env)->CallVoidMethod(env, o, mid_TestInterface_MultipleUnnamedParams, _p0, _p1, _p2); |
| 86 |
go_seq_pop_local_frame(env); |
| 87 |
} |
| 88 |
|