X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/8916ea860f65b3976921f873c8bc6ec576cb8b67..fe1818536e2bf9261b7c4349ac02877bcbb3c124:/orte/libjorte/JORTESubscriptionCreate.c diff --git a/orte/libjorte/JORTESubscriptionCreate.c b/orte/libjorte/JORTESubscriptionCreate.c index e8ee56d..b02edea 100644 --- a/orte/libjorte/JORTESubscriptionCreate.c +++ b/orte/libjorte/JORTESubscriptionCreate.c @@ -76,7 +76,13 @@ recvCallBack(const ORTERecvInfo *info,void *vinstance, void *recvCallBackParam) } jvm = callback_cont->jvm; // get env - (*jvm)->AttachCurrentThread(jvm, (void **)&env, NULL); + (*jvm)->AttachCurrentThread(jvm, + #ifdef __ANDROID__ + &env, + #else + (void **)&env, + #endif + NULL); if(env == 0) { #ifdef TEST_STAGE @@ -328,6 +334,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionCreate jstring jtopic, // subs topic jstring jtname, // subs typeName jobject jinstance, // direct ByteBuffer + jint jbyteOrder,// byte order of ByteBuffer jobject obj_msg, // messageData instance jobject jdeadline, jobject jminSeparation, @@ -385,7 +392,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionCreate #endif } callback_cont->jvm = jvm; - callback_cont->cur_endian = FLAG_ENDIANNESS; + callback_cont->cur_endian = (CDR_Endianness) jbyteOrder; // create global references callback_cont->obj = (*env)->NewGlobalRef(env, obj_callback); //