Update tdlib, tdlight, and 2 more files...

This commit is contained in:
Andrea Cavalli 2020-10-12 17:54:38 +02:00
parent a170a72721
commit 7aa2d03426
4 changed files with 8 additions and 3 deletions

@ -1 +1 @@
Subproject commit 6b1f6b829d0d71f5d50662b1ff58b7869c1e1d7f
Subproject commit a8355f1749a045e64d1a9c4cf3a777fa5f014747

@ -1 +1 @@
Subproject commit 54938a07d6f68fd83498a1ca87e758d94e15a2f9
Subproject commit f5ecc4b89655ddfaa1e05b77d6740e8d9cdfcaea

View File

@ -72,6 +72,11 @@ static jint Client_nativeClientReceive(JNIEnv *env, jclass clazz, jintArray clie
return result_size;
}
static jint Client_nativeClientReceiveAdvanced(JNIEnv *env, jclass clazz, jintArray client_ids, jlongArray ids,
jobjectArray events, jdouble timeout, jboolean include_responses, jboolean include_updates) {
return Client_nativeClientReceive(env, clazz, client_ids, ids, events, timeout);
}
static jobject Client_nativeClientExecute(JNIEnv *env, jclass clazz, jobject function) {
jobject result;
td::ClientManager::execute(fetch_function(env, function))->store(env, result);
@ -137,6 +142,7 @@ static jint register_native(JavaVM *vm) {
register_method(client_class, "createNativeClient", "()I", Client_createNativeClient);
register_method(client_class, "nativeClientSend", "(IJ" TD_FUNCTION ")V", Client_nativeClientSend);
register_method(client_class, "nativeClientReceive", "([I[J[" TD_OBJECT "D)I", Client_nativeClientReceive);
register_method(client_class, "nativeClientReceive", "([I[J[" TD_OBJECT "DZZ)I", Client_nativeClientReceiveAdvanced);
register_method(client_class, "nativeClientExecute", "(" TD_FUNCTION ")" TD_OBJECT, Client_nativeClientExecute);
register_method(log_class, "setVerbosityLevel", "(I)V", Log_setVerbosityLevel);

View File

@ -171,7 +171,6 @@ static jint register_native(JavaVM *vm) {
register_method(client_class, "nativeClientReceive", "([I[J[" TD_OBJECT "D)I", Client_nativeClientReceive);
register_method(client_class, "nativeClientReceive", "([I[J[" TD_OBJECT "DZZ)I", Client_nativeClientReceiveAdvanced);
register_method(client_class, "nativeClientExecute", "(" TD_FUNCTION ")" TD_OBJECT, Client_nativeClientExecute);
register_method(client_class, "destroyNativeClient", "(J)V", Client_destroyNativeClient);
register_method(log_class, "setVerbosityLevel", "(I)V", Log_setVerbosityLevel);
register_method(log_class, "setFilePath", "(Ljava/lang/String;)Z", Log_setFilePath);