underscores.java.c.golden 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Code generated by gobind. DO NOT EDIT.
  2. // JNI functions for the Go <=> Java bridge.
  3. //
  4. // autogenerated by gobind -lang=java underscores
  5. #include <android/log.h>
  6. #include <stdint.h>
  7. #include "seq.h"
  8. #include "_cgo_export.h"
  9. #include "underscore_pkg.h"
  10. jclass proxy_class_underscore_pkg_Underscore_struct;
  11. jmethodID proxy_class_underscore_pkg_Underscore_struct_cons;
  12. JNIEXPORT void JNICALL
  13. Java_underscore_1pkg_Underscore_1pkg__1init(JNIEnv *env, jclass _unused) {
  14. jclass clazz;
  15. clazz = (*env)->FindClass(env, "underscore_pkg/Underscore_struct");
  16. proxy_class_underscore_pkg_Underscore_struct = (*env)->NewGlobalRef(env, clazz);
  17. proxy_class_underscore_pkg_Underscore_struct_cons = (*env)->GetMethodID(env, clazz, "<init>", "(I)V");
  18. }
  19. JNIEXPORT void JNICALL
  20. Java_underscore_1pkg_Underscore_1pkg_underscore_1func(JNIEnv* env, jclass _clazz) {
  21. proxyunderscore_pkg__Underscore_func();
  22. }
  23. JNIEXPORT jint JNICALL
  24. Java_underscore_1pkg_Underscore_1struct__1_1New(JNIEnv *env, jclass clazz) {
  25. return new_underscore_pkg_Underscore_struct();
  26. }
  27. JNIEXPORT void JNICALL
  28. Java_underscore_1pkg_Underscore_1struct_setUnderscore_1field(JNIEnv *env, jobject this, jstring v) {
  29. int32_t o = go_seq_to_refnum_go(env, this);
  30. nstring _v = go_seq_from_java_string(env, v);
  31. proxyunderscore_pkg_Underscore_struct_Underscore_field_Set(o, _v);
  32. }
  33. JNIEXPORT jstring JNICALL
  34. Java_underscore_1pkg_Underscore_1struct_getUnderscore_1field(JNIEnv *env, jobject this) {
  35. int32_t o = go_seq_to_refnum_go(env, this);
  36. nstring r0 = proxyunderscore_pkg_Underscore_struct_Underscore_field_Get(o);
  37. jstring _r0 = go_seq_to_java_string(env, r0);
  38. return _r0;
  39. }
  40. JNIEXPORT void JNICALL
  41. Java_underscore_1pkg_Underscore_1pkg_setUnderscore_1var(JNIEnv *env, jclass clazz, jlong v) {
  42. nint _v = (nint)v;
  43. var_setunderscore_pkg_Underscore_var(_v);
  44. }
  45. JNIEXPORT jlong JNICALL
  46. Java_underscore_1pkg_Underscore_1pkg_getUnderscore_1var(JNIEnv *env, jclass clazz) {
  47. nint r0 = var_getunderscore_pkg_Underscore_var();
  48. jlong _r0 = (jlong)r0;
  49. return _r0;
  50. }