982 int service_type =
mode & 0x0FFF;
983 void (*callback_function)();
984 jobject callback_param;
985 jobject theReceiveSynchronizer;
986 const char* info = (*env)->GetStringUTFChars(env, name, 0);
987 extern unsigned request_service(
char *,
int,
int ,
void *,
int ,
void (*)(),
998 callback_param = (*env)->NewGlobalRef(env, theReceiveSynchronizer);
1002 callback_param = (*env)->NewGlobalRef(env, theNativeDataDecoder);
1011 ret = (jint)
request_service((
char *)info, service_type, timeout, 0, 0, callback_function, (
dim_long)callback_param, &no_link, 0, stamped);
1013 (*env)->ReleaseStringUTFChars(env, name, info);
1015 if(mode & dim_Native_F_WAIT)
#define dim_Native_F_STAMPED
#define dim_Dbg_INFO_SERVICE
void info_service_callback_with_cleanup(jobject *_aDataDecoder, void *data, int *_size)
jclass ReceiveSynchronizer
jmethodID ReceiveSynchronizer_getCompletionCode
unsigned request_service(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size, int stamped)
void info_service_callback(jobject *_aDataDecoder, void *data, int *_size)
jmethodID ReceiveSynchronizer_new
#define dim_Native_ONCE_ONLY
#define dim_Native_F_WAIT