Use our package names

This commit is contained in:
Ernesto Castellotti 2019-01-22 21:44:29 +01:00 committed by GitHub
parent 7a6eb791f4
commit a2502ad98a

View File

@ -126,13 +126,13 @@ static jint register_native(JavaVM *vm) {
reinterpret_cast<void *>(function_ptr));
};
auto client_class = td::jni::get_jclass(env, PACKAGE_NAME "/Client");
log_class = td::jni::get_jclass(env, PACKAGE_NAME "/Log");
auto object_class = td::jni::get_jclass(env, PACKAGE_NAME "/TdApi$Object");
auto function_class = td::jni::get_jclass(env, PACKAGE_NAME "/TdApi$Function");
auto client_class = td::jni::get_jclass(env, PACKAGE_NAME "it/ernytech/tdlib/Client");
log_class = td::jni::get_jclass(env, PACKAGE_NAME "it/ernytech/tdlib/Log");
auto object_class = td::jni::get_jclass(env, PACKAGE_NAME "it/ernytech/tdlib/TdApi$Object");
auto function_class = td::jni::get_jclass(env, PACKAGE_NAME "it/ernytech/tdlib/TdApi$Function");
#define TD_OBJECT "L" PACKAGE_NAME "/TdApi$Object;"
#define TD_FUNCTION "L" PACKAGE_NAME "/TdApi$Function;"
#define TD_OBJECT "L" PACKAGE_NAME "it/ernytech/tdlib/TdApi$Object;"
#define TD_FUNCTION "L" PACKAGE_NAME "it/ernytech/tdlib/TdApi$Function;"
register_method(client_class, "createNativeClient", "()J", Client_createNativeClient);
register_method(client_class, "nativeClientSend", "(JJ" TD_FUNCTION ")V", Client_nativeClientSend);
register_method(client_class, "nativeClientReceive", "(J[J[" TD_OBJECT "D)I", Client_nativeClientReceive);
@ -162,4 +162,4 @@ static jint register_native(JavaVM *vm) {
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
static jint jni_version = td_jni::register_native(vm); // call_once
return jni_version;
}
}