// This file was generated by
// //third_party/jni_zero/jni_zero.py
// For
// org.jni_zero.SampleProxyEdgeCases
#ifndef org_jni_1zero_SampleProxyEdgeCases_JNI
#define org_jni_1zero_SampleProxyEdgeCases_JNI
#include <jni.h>
#include "third_party/jni_zero/jni_export.h"
#include "third_party/jni_zero/jni_zero_helper.h"
// Java to native functions
// Forward declaration. To be implemented by the including .cc file.
static jint JNI_SampleProxyEdgeCases_AddStructB(
JNIEnv* env,
const jni_zero::JavaParamRef<jobject>& caller,
const jni_zero::JavaParamRef<jobject>& b);
JNI_POSSIBLE_BOUNDARY_EXPORT jint Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1addStructB(
JNIEnv* env,
jclass jcaller,
jobject caller,
jobject b) {
auto _ret = JNI_SampleProxyEdgeCases_AddStructB(
env,
jni_zero::JavaParamRef<jobject>(env, caller),
jni_zero::JavaParamRef<jobject>(env, b));
return _ret;
}
// Forward declaration. To be implemented by the including .cc file.
static jni_zero::ScopedJavaLocalRef<jobjectArray> JNI_SampleProxyEdgeCases_ArrayTypes1(
JNIEnv* env,
const jni_zero::JavaParamRef<jintArray>& a,
const jni_zero::JavaParamRef<jobjectArray>& b);
JNI_POSSIBLE_BOUNDARY_EXPORT jobject Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1arrayTypes1(
JNIEnv* env,
jclass jcaller,
jobject a,
jobject b) {
auto _ret = JNI_SampleProxyEdgeCases_ArrayTypes1(
env,
jni_zero::JavaParamRef<jintArray>(env, static_cast<jintArray>(a)),
jni_zero::JavaParamRef<jobjectArray>(env, static_cast<jobjectArray>(b)));
return _ret.ReleaseLocal();
}
// Forward declaration. To be implemented by the including .cc file.
static jni_zero::ScopedJavaLocalRef<jintArray> JNI_SampleProxyEdgeCases_ArrayTypes2(
JNIEnv* env,
const jni_zero::JavaParamRef<jintArray>& a,
const jni_zero::JavaParamRef<jobjectArray>& b);
JNI_POSSIBLE_BOUNDARY_EXPORT jobject Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1arrayTypes2(
JNIEnv* env,
jclass jcaller,
jobject a,
jobject b) {
auto _ret = JNI_SampleProxyEdgeCases_ArrayTypes2(
env,
jni_zero::JavaParamRef<jintArray>(env, static_cast<jintArray>(a)),
jni_zero::JavaParamRef<jobjectArray>(env, static_cast<jobjectArray>(b)));
return _ret.ReleaseLocal();
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_FooForTest(JNIEnv* env);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1fooForTest(
JNIEnv* env,
jclass jcaller) {
JNI_SampleProxyEdgeCases_FooForTest(env);
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_FooForTesting(JNIEnv* env);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1fooForTesting(
JNIEnv* env,
jclass jcaller) {
JNI_SampleProxyEdgeCases_FooForTesting(env);
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_FooForTests(JNIEnv* env);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1fooForTests(
JNIEnv* env,
jclass jcaller) {
JNI_SampleProxyEdgeCases_FooForTests(env);
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_Foo__weirdly__escaped_name1(JNIEnv* env);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1foo_11_11weirdly_11_11escaped_11name1(
JNIEnv* env,
jclass jcaller) {
JNI_SampleProxyEdgeCases_Foo__weirdly__escaped_name1(env);
}
// Forward declaration. To be implemented by the including .cc file.
static jni_zero::ScopedJavaLocalRef<jobjectArray> JNI_SampleProxyEdgeCases_GenericsWithNestedClassArray(
JNIEnv* env,
const jni_zero::JavaParamRef<jobjectArray>& arg);
JNI_POSSIBLE_BOUNDARY_EXPORT jobject Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1genericsWithNestedClassArray(
JNIEnv* env,
jclass jcaller,
jobject arg) {
auto _ret = JNI_SampleProxyEdgeCases_GenericsWithNestedClassArray(
env,
jni_zero::JavaParamRef<jobjectArray>(env, static_cast<jobjectArray>(arg)));
return _ret.ReleaseLocal();
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_SetBool(
JNIEnv* env,
const jni_zero::JavaParamRef<jobject>& b,
const jni_zero::JavaParamRef<jobject>& i);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1setBool(
JNIEnv* env,
jclass jcaller,
jobject b,
jobject i) {
JNI_SampleProxyEdgeCases_SetBool(
env,
jni_zero::JavaParamRef<jobject>(env, b),
jni_zero::JavaParamRef<jobject>(env, i));
}
// Forward declaration. To be implemented by the including .cc file.
static jboolean JNI_SampleProxyEdgeCases_SetStringBuilder(
JNIEnv* env,
const jni_zero::JavaParamRef<jobject>& sb);
JNI_POSSIBLE_BOUNDARY_EXPORT jboolean Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1setStringBuilder(
JNIEnv* env,
jclass jcaller,
jobject sb) {
auto _ret = JNI_SampleProxyEdgeCases_SetStringBuilder(
env,
jni_zero::JavaParamRef<jobject>(env, sb));
return _ret;
}
// Forward declaration. To be implemented by the including .cc file.
static jint JNI_SampleProxyEdgeCases_SetStringBuilder(JNIEnv* env, jint sb);
JNI_POSSIBLE_BOUNDARY_EXPORT jint Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1SampleProxyEdgeCases_1setStringBuilder(
JNIEnv* env,
jclass jcaller,
jint sb) {
auto _ret = JNI_SampleProxyEdgeCases_SetStringBuilder(env, sb);
return _ret;
}
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_SampleProxyEdgeCases_nativeInstanceMethod(
JNIEnv* env,
jobject jcaller,
jlong nativeInstance) {
reinterpret_cast<Instance*>(nativeInstance)->InstanceMethod(
env,
jni_zero::JavaParamRef<jobject>(env, jcaller));
}
// Forward declaration. To be implemented by the including .cc file.
static void JNI_SampleProxyEdgeCases_StaticMethod(JNIEnv* env);
JNI_POSSIBLE_BOUNDARY_EXPORT void Java_org_jni_1zero_SampleProxyEdgeCases_nativeStaticMethod(
JNIEnv* env,
jclass jcaller) {
JNI_SampleProxyEdgeCases_StaticMethod(env);
}
#endif // org_jni_1zero_SampleProxyEdgeCases_JNI