FACT++  1.0
void send_callback ( jobject *  _aCompletionHandler,
int *  _status 
)

Definition at line 413 of file dim_jni.c.

References CompletionHandler_setCompletionCode, DBGe, dim_Dbg_SEND_CALLBACK, dim_jni_attachThread(), and theJavaVM.

Referenced by send_data().

414 {
415  jobject theCompletionHandler = *_theCompletionHandler;
416  JNIEnv* env;
417  int doit;
418 
419  DBGe(dim_Dbg_SEND_CALLBACK) printf("DimJNI: client SEND_CALLBACK status %08lx:%d\n", (dim_long)_status, *_status);
420 
421  doit = dim_jni_attachThread(&env);
422 // (*theJavaVM)->AttachCurrentThread(theJavaVM, (void *)&env, NULL);
423 
424  (*env)->CallIntMethod(env, theCompletionHandler, CompletionHandler_setCompletionCode, *_status);
425  (*env)->DeleteGlobalRef(env, theCompletionHandler);
426 
427  if(doit)
428  (*theJavaVM)->DetachCurrentThread(theJavaVM);
429  return;
430 }
JavaVM * theJavaVM
Definition: dim_jni.c:85
#define dim_Dbg_SEND_CALLBACK
Definition: dim_jni.h:34
long dim_long
Definition: dim_common.h:57
#define DBGe(test)
Definition: dim_jni.c:64
if(extraDns) new Dns
int dim_jni_attachThread(JNIEnv **env)
Definition: dim_jni.c:171
jmethodID CompletionHandler_setCompletionCode
Definition: dim_jni.c:106

+ Here is the call graph for this function:

+ Here is the caller graph for this function: