FACT++  1.0
JNIEXPORT jint JNICALL Java_dim_Server_addCommand ( JNIEnv *  env,
jclass  This,
jstring  serviceName,
jstring  serviceType,
jobject  dataDecoder 
)

Definition at line 1434 of file dim_jni.c.

References DBGx, dim_Dbg_ADD_CMND, dis_add_cmnd, Java_dim_Server_selectiveUpdateService(), and server_cmnd_callback().

Referenced by server_cmnd_callback().

1435 {
1436  const char* serviceNameUTF = (*env)->GetStringUTFChars(env, serviceName, 0);
1437  const char* serviceTypeUTF = (*env)->GetStringUTFChars(env, serviceType, 0);
1438  jint sid;
1439 
1440 // DBGe(dim_Dbg_ADD_CMND) ; /* trap only, repot later */
1441  if(This){}
1442  dataDecoder = (*env)->NewGlobalRef(env, dataDecoder);
1443  sid = (jint)dis_add_cmnd(serviceNameUTF, serviceTypeUTF, server_cmnd_callback, dataDecoder);
1444 
1445  DBGx(dim_Dbg_ADD_CMND) printf("DimJNI: Server.addCmnd(%s,%s, @%08lx) = %d\n",serviceNameUTF, serviceTypeUTF, (dim_long) dataDecoder, sid);
1446 
1447  (*env)->ReleaseStringUTFChars(env, serviceName, serviceNameUTF);
1448  (*env)->ReleaseStringUTFChars(env, serviceType, serviceTypeUTF);
1449  return sid;
1450 }
void server_cmnd_callback(jobject *_theDataDecoder, void *dataAddress, int *_dataSize)
Definition: dim_jni.c:1419
#define dis_add_cmnd
Definition: dis.h:13
#define dim_Dbg_ADD_CMND
Definition: dim_jni.h:52
long dim_long
Definition: dim_common.h:57
#define DBGx(test)
Definition: dim_jni.c:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: