• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file was generated by
2//     //third_party/jni_zero/jni_zero.py
3// For
4//     org.jni_zero.TinySample
5
6#ifndef org_jni_1zero_TinySample_JNI
7#define org_jni_1zero_TinySample_JNI
8
9#include <jni.h>
10
11#include "third_party/jni_zero/jni_export.h"
12#include "third_party/jni_zero/jni_zero_helper.h"
13
14// Java to native functions
15// Forward declaration. To be implemented by the including .cc file.
16static jboolean JNI_TinySample_Bar(JNIEnv* env, jint a, const jni_zero::JavaParamRef<jobject>& b);
17
18JNI_ZERO_BOUNDARY_EXPORT jboolean Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1TinySample_1bar(
19    JNIEnv* env,
20    jclass jcaller,
21    jint a,
22    jobject b) {
23  auto _ret = JNI_TinySample_Bar(env, a, jni_zero::JavaParamRef<jobject>(env, b));
24  return _ret;
25}
26
27// Forward declaration. To be implemented by the including .cc file.
28static void JNI_TinySample_Foo(JNIEnv* env, const jni_zero::JavaParamRef<jobject>& a, jint b);
29
30JNI_ZERO_BOUNDARY_EXPORT void Java_org_jni_1zero_GEN_1JNI_org_1jni_11zero_1TinySample_1foo(
31    JNIEnv* env,
32    jclass jcaller,
33    jobject a,
34    jint b) {
35  JNI_TinySample_Foo(env, jni_zero::JavaParamRef<jobject>(env, a), b);
36}
37
38
39
40#endif  // org_jni_1zero_TinySample_JNI
41