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

Definition at line 1399 of file dim_jni.c.

References DBGx, dim_Dbg_ADD_SERVICE, dis_add_service, and server_getInfo_callback().

Referenced by Java_dim_Client_getServices().

1400 {
1401  const char* serviceNameUTF = (*env)->GetStringUTFChars(env, serviceName, 0);
1402  const char* serviceTypeUTF = (*env)->GetStringUTFChars(env, serviceType, 0);
1403  jint sid;
1404 
1405 // DBGe(dim_Dbg_ADD_SERVICE) ; /* no reporting, for trap only */
1406 
1407  if(This){}
1408  dataEncoder = (*env)->NewGlobalRef(env, dataEncoder);
1409  sid = (jint)dis_add_service(serviceNameUTF, serviceTypeUTF, 0, 0, server_getInfo_callback, dataEncoder);
1410 
1411  DBGx(dim_Dbg_ADD_SERVICE) printf("DimJNI: Server.addService(%s,%s, @%08lx)=%d\n",serviceNameUTF, serviceTypeUTF, (dim_long)dataEncoder, sid);
1412 
1413  (*env)->ReleaseStringUTFChars(env, serviceName, serviceNameUTF);
1414  (*env)->ReleaseStringUTFChars(env, serviceType, serviceTypeUTF);
1415  return sid;
1416 }
#define dim_Dbg_ADD_SERVICE
Definition: dim_jni.h:46
void server_getInfo_callback(jobject *_aDataEncoder, void **address, int *size)
Definition: dim_jni.c:1232
long dim_long
Definition: dim_common.h:57
#define DBGx(test)
Definition: dim_jni.c:66
#define dis_add_service
Definition: dis.h:12

+ Here is the call graph for this function:

+ Here is the caller graph for this function: