github.com/F4RD1N/gomobile@v1.0.1/bind/testdata/issue12328.java.c.golden (about) 1 // Code generated by gobind. DO NOT EDIT. 2 3 // JNI functions for the Go <=> Java bridge. 4 // 5 // autogenerated by gobind -lang=java issue12328 6 7 #include <android/log.h> 8 #include <stdint.h> 9 #include "seq.h" 10 #include "_cgo_export.h" 11 #include "issue12328.h" 12 13 jclass proxy_class_issue12328_T; 14 jmethodID proxy_class_issue12328_T_cons; 15 16 JNIEXPORT void JNICALL 17 Java_issue12328_Issue12328__1init(JNIEnv *env, jclass _unused) { 18 jclass clazz; 19 clazz = (*env)->FindClass(env, "issue12328/T"); 20 proxy_class_issue12328_T = (*env)->NewGlobalRef(env, clazz); 21 proxy_class_issue12328_T_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V"); 22 } 23 24 JNIEXPORT jint JNICALL 25 Java_issue12328_T__1_1New(JNIEnv *env, jclass clazz) { 26 return new_issue12328_T(); 27 } 28 29 JNIEXPORT void JNICALL 30 Java_issue12328_T_setErr(JNIEnv *env, jobject this, jobject v) { 31 int32_t o = go_seq_to_refnum_go(env, this); 32 int32_t _v = go_seq_to_refnum(env, v); 33 proxyissue12328_T_Err_Set(o, _v); 34 } 35 36 JNIEXPORT jobject JNICALL 37 Java_issue12328_T_getErr(JNIEnv *env, jobject this) { 38 int32_t o = go_seq_to_refnum_go(env, this); 39 int32_t r0 = proxyissue12328_T_Err_Get(o); 40 jobject _r0 = go_seq_from_refnum(env, r0, proxy_class__error, proxy_class__error_cons); 41 return _r0; 42 } 43