Changeset 766 for trunk/zoo-project/zoo-api/java
- Timestamp:
- Jun 6, 2016, 3:29:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-api/java/zoo-api.c
r525 r766 5 5 6 6 JNIEXPORT jstring JNICALL Java_ZOO__1 7 (JNIEnv *env, jclass class, jstring msg){ 8 const char *message = (*env)->GetStringUTFChars(env,msg, 0); 7 (JNIEnv *env, jclass _class, jstring msg){ 8 const char *message = 9 #ifdef JAVA7 10 (*env).GetStringUTFChars(msg,0); 11 return (*env).NewStringUTF(_(message)); 12 #else 13 (*env)->GetStringUTFChars(env,msg, 0); 9 14 return (*env)->NewStringUTF(env, _(message)); 15 #endif 10 16 11 17 } 12 18 13 19 JNIEXPORT jobject JNICALL Java_ZOO_updateStatus 14 (JNIEnv *env, jclass class, jobject conf, jstring pourc, jstring msg){20 (JNIEnv *env, jclass _class, jobject conf, jstring pourc, jstring msg){ 15 21 16 22 jclass scHashMapClass,scHashMap_class; 17 23 #ifdef JAVA7 18 24 scHashMapClass = (*env).FindClass("java/util/HashMap"); 25 const char *pourcent = (*env).GetStringUTFChars(pourc,0); 26 const char *message = (*env).GetStringUTFChars(msg,0); 19 27 #else 20 28 scHashMapClass = (*env)->FindClass(env, "java/util/HashMap"); 21 #endif22 29 const char *pourcent = (*env)->GetStringUTFChars(env,pourc, 0); 23 30 const char *message = (*env)->GetStringUTFChars(env,msg, 0); 31 #endif 24 32 maps* m = mapsFromHashMap(env,conf,scHashMapClass); 25 33 setMapInMaps(m,"lenv","status",pourcent);
Note: See TracChangeset
for help on using the changeset viewer.