2012-04-19 14:35:52 +08:00
|
|
|
/****************************************************************************
|
2014-01-07 11:25:07 +08:00
|
|
|
Copyright (c) 2010-2012 cocos2d-x.org
|
2018-01-29 16:25:32 +08:00
|
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
|
|
|
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef __ANDROID_JNI_HELPER_H__
|
|
|
|
#define __ANDROID_JNI_HELPER_H__
|
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
#include <string>
|
2015-11-11 04:39:16 +08:00
|
|
|
#include <vector>
|
|
|
|
#include <unordered_map>
|
2016-06-16 02:33:25 +08:00
|
|
|
#include <functional>
|
2014-09-10 08:53:08 +08:00
|
|
|
#include "platform/CCPlatformMacros.h"
|
2016-06-16 02:33:25 +08:00
|
|
|
#include "math/Vec3.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
|
|
|
typedef struct JniMethodInfo_
|
|
|
|
{
|
|
|
|
JNIEnv * env;
|
|
|
|
jclass classID;
|
|
|
|
jmethodID methodID;
|
|
|
|
} JniMethodInfo;
|
|
|
|
|
|
|
|
class CC_DLL JniHelper
|
|
|
|
{
|
|
|
|
public:
|
2017-09-06 15:07:01 +08:00
|
|
|
|
|
|
|
typedef std::unordered_map<JNIEnv*, std::vector<jobject>> LocalRefMapType;
|
|
|
|
|
2013-07-20 06:18:32 +08:00
|
|
|
static void setJavaVM(JavaVM *javaVM);
|
2012-04-19 14:35:52 +08:00
|
|
|
static JavaVM* getJavaVM();
|
2013-07-20 07:07:34 +08:00
|
|
|
static JNIEnv* getEnv();
|
2016-06-16 02:33:25 +08:00
|
|
|
static jobject getActivity();
|
2013-07-20 07:07:34 +08:00
|
|
|
|
2014-03-25 10:57:29 +08:00
|
|
|
static bool setClassLoaderFrom(jobject activityInstance);
|
2013-07-20 06:01:42 +08:00
|
|
|
static bool getStaticMethodInfo(JniMethodInfo &methodinfo,
|
|
|
|
const char *className,
|
|
|
|
const char *methodName,
|
|
|
|
const char *paramCode);
|
|
|
|
static bool getMethodInfo(JniMethodInfo &methodinfo,
|
|
|
|
const char *className,
|
|
|
|
const char *methodName,
|
|
|
|
const char *paramCode);
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
static std::string jstring2string(jstring str);
|
|
|
|
|
2013-07-20 07:07:34 +08:00
|
|
|
static jmethodID loadclassMethod_methodID;
|
2013-07-20 06:01:42 +08:00
|
|
|
static jobject classloader;
|
2016-06-16 02:33:25 +08:00
|
|
|
static std::function<void()> classloaderCallback;
|
2013-07-20 06:01:42 +08:00
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
@brief Call of Java static void method
|
2017-11-21 11:36:10 +08:00
|
|
|
@if no such method will log error
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static void callStaticVoidMethod(const std::string& className,
|
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")V";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
t.env->CallStaticVoidMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static boolean method
|
|
|
|
@return value from Java static boolean method if there are proper JniMethodInfo; otherwise false.
|
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static bool callStaticBooleanMethod(const std::string& className,
|
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
|
|
|
jboolean jret = JNI_FALSE;
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")Z";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
jret = t.env->CallStaticBooleanMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
return (jret == JNI_TRUE);
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static int method
|
2017-11-21 11:36:10 +08:00
|
|
|
@return value from Java static int method if there are proper JniMethodInfo; otherwise 0.
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static int callStaticIntMethod(const std::string& className,
|
2015-11-27 17:00:33 +08:00
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
2015-11-08 04:57:05 +08:00
|
|
|
jint ret = 0;
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")I";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
ret = t.env->CallStaticIntMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static float method
|
2017-11-21 11:36:10 +08:00
|
|
|
@return value from Java static float method if there are proper JniMethodInfo; otherwise 0.
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static float callStaticFloatMethod(const std::string& className,
|
2015-11-27 17:00:33 +08:00
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
2015-11-08 04:57:05 +08:00
|
|
|
jfloat ret = 0.0;
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")F";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
ret = t.env->CallStaticFloatMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static float* method
|
|
|
|
@return address of JniMethodInfo if there are proper JniMethodInfo; otherwise nullptr.
|
|
|
|
*/
|
2016-06-16 02:33:25 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static float* callStaticFloatArrayMethod(const std::string& className,
|
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
|
|
|
static float ret[32];
|
|
|
|
cocos2d::JniMethodInfo t;
|
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")[F";
|
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
jfloatArray array = (jfloatArray) t.env->CallStaticObjectMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2016-06-16 02:33:25 +08:00
|
|
|
jsize len = t.env->GetArrayLength(array);
|
|
|
|
if (len <= 32) {
|
|
|
|
jfloat* elems = t.env->GetFloatArrayElements(array, 0);
|
|
|
|
if (elems) {
|
|
|
|
memcpy(ret, elems, sizeof(float) * len);
|
|
|
|
t.env->ReleaseFloatArrayElements(array, elems, 0);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2016-06-16 02:33:25 +08:00
|
|
|
return &ret[0];
|
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
|
|
|
}
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static Vec3 method
|
2017-11-21 11:36:10 +08:00
|
|
|
@return JniMethodInfo of Vec3 type if there are proper JniMethodInfo; otherwise Vec3(0, 0, 0).
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2016-06-16 02:33:25 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static Vec3 callStaticVec3Method(const std::string& className,
|
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
|
|
|
Vec3 ret;
|
|
|
|
cocos2d::JniMethodInfo t;
|
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")[F";
|
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
jfloatArray array = (jfloatArray) t.env->CallStaticObjectMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2016-06-16 02:33:25 +08:00
|
|
|
jsize len = t.env->GetArrayLength(array);
|
|
|
|
if (len == 3) {
|
|
|
|
jfloat* elems = t.env->GetFloatArrayElements(array, 0);
|
|
|
|
ret.x = elems[0];
|
|
|
|
ret.y = elems[1];
|
|
|
|
ret.z = elems[2];
|
|
|
|
t.env->ReleaseFloatArrayElements(array, elems, 0);
|
|
|
|
}
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2016-06-16 02:33:25 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static double method
|
2017-11-21 11:36:10 +08:00
|
|
|
@return value from Java static double method if there are proper JniMethodInfo; otherwise 0.
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static double callStaticDoubleMethod(const std::string& className,
|
2015-11-27 17:00:33 +08:00
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
2015-11-08 04:57:05 +08:00
|
|
|
jdouble ret = 0.0;
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")D";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
ret = t.env->CallStaticDoubleMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
t.env->DeleteLocalRef(t.classID);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-11-20 10:41:56 +08:00
|
|
|
/**
|
|
|
|
@brief Call of Java static string method
|
2017-11-21 11:36:10 +08:00
|
|
|
@return JniMethodInfo of string type if there are proper JniMethodInfo; otherwise empty string.
|
2017-11-20 10:41:56 +08:00
|
|
|
*/
|
2015-11-08 04:57:05 +08:00
|
|
|
template <typename... Ts>
|
|
|
|
static std::string callStaticStringMethod(const std::string& className,
|
|
|
|
const std::string& methodName,
|
|
|
|
Ts... xs) {
|
|
|
|
std::string ret;
|
|
|
|
|
|
|
|
cocos2d::JniMethodInfo t;
|
2015-11-11 04:39:16 +08:00
|
|
|
std::string signature = "(" + std::string(getJNISignature(xs...)) + ")Ljava/lang/String;";
|
2015-11-08 04:57:05 +08:00
|
|
|
if (cocos2d::JniHelper::getStaticMethodInfo(t, className.c_str(), methodName.c_str(), signature.c_str())) {
|
2017-09-06 15:07:01 +08:00
|
|
|
LocalRefMapType localRefs;
|
|
|
|
jstring jret = (jstring)t.env->CallStaticObjectMethod(t.classID, t.methodID, convert(localRefs, t, xs)...);
|
2015-11-08 04:57:05 +08:00
|
|
|
ret = cocos2d::JniHelper::jstring2string(jret);
|
|
|
|
t.env->DeleteLocalRef(t.classID);
|
|
|
|
t.env->DeleteLocalRef(jret);
|
2017-09-06 15:07:01 +08:00
|
|
|
deleteLocalRefs(t.env, localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
} else {
|
|
|
|
reportError(className, methodName, signature);
|
2015-11-08 04:57:05 +08:00
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
private:
|
2014-03-25 10:57:29 +08:00
|
|
|
static JNIEnv* cacheEnv(JavaVM* jvm);
|
2013-07-20 06:01:42 +08:00
|
|
|
|
2013-07-20 07:26:02 +08:00
|
|
|
static bool getMethodInfo_DefaultClassLoader(JniMethodInfo &methodinfo,
|
|
|
|
const char *className,
|
|
|
|
const char *methodName,
|
|
|
|
const char *paramCode);
|
|
|
|
|
2013-07-20 07:07:34 +08:00
|
|
|
static JavaVM* _psJavaVM;
|
2016-06-16 02:33:25 +08:00
|
|
|
|
|
|
|
static jobject _activity;
|
2015-11-08 04:57:05 +08:00
|
|
|
|
2017-09-06 15:07:01 +08:00
|
|
|
static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const char* x);
|
2015-11-08 04:57:05 +08:00
|
|
|
|
2017-09-06 15:07:01 +08:00
|
|
|
static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const std::string& x);
|
2015-11-08 04:57:05 +08:00
|
|
|
|
|
|
|
template <typename T>
|
2017-09-06 15:07:01 +08:00
|
|
|
static T convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo&, T x) {
|
2015-11-08 04:57:05 +08:00
|
|
|
return x;
|
|
|
|
}
|
2015-11-11 04:39:16 +08:00
|
|
|
|
2017-09-06 15:07:01 +08:00
|
|
|
static void deleteLocalRefs(JNIEnv* env, LocalRefMapType& localRefs);
|
2015-11-27 17:00:33 +08:00
|
|
|
|
|
|
|
static std::string getJNISignature() {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(bool) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "Z";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(char) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "C";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(short) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "S";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(int) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "I";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(long) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "J";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(float) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "F";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(double) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "D";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(const char*) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "Ljava/lang/String;";
|
|
|
|
}
|
|
|
|
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(const std::string&) {
|
2015-11-11 04:39:16 +08:00
|
|
|
return "Ljava/lang/String;";
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename T>
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(T x) {
|
2015-11-11 04:39:16 +08:00
|
|
|
// This template should never be instantiated
|
|
|
|
static_assert(sizeof(x) == 0, "Unsupported argument type");
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename T, typename... Ts>
|
2015-11-27 17:00:33 +08:00
|
|
|
static std::string getJNISignature(T x, Ts... xs) {
|
|
|
|
return getJNISignature(x) + getJNISignature(xs...);
|
2015-11-11 04:39:16 +08:00
|
|
|
}
|
2015-11-27 17:00:33 +08:00
|
|
|
|
|
|
|
static void reportError(const std::string& className, const std::string& methodName, const std::string& signature);
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
#endif // __ANDROID_JNI_HELPER_H__
|