/[zanavi_public1]/navit/navit/android.c
ZANavi

Diff of /navit/navit/android.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 55 Revision 56
484 } 484 }
485 //DBG // dbg(0,"l meth %p\n", *ret); 485 //DBG // dbg(0,"l meth %p\n", *ret);
486 return 1; 486 return 1;
487} 487}
488 488
489
490void send_alert_to_java(int id, const char *text);
491void android_DrawMapPreview_target(int x, int y);
492void android_DrawMapPreview_text(int x, int y, char *text, int size, int dx, int dy);
493void android_DrawMapPreview_polyline(struct point *p, int count, int type);
494void android_DrawPreview_polyline(struct point *p, int count, int type, const char* item_type);
495
496
489// #include <signal.h> 497// #include <signal.h>
490Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("-O0"))); 498Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("-O0")));
491Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("O0"))); 499Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) __attribute__((optimize("O0")));
492Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz) 500Java_com_zoffcc_applications_zanavi_Navit_AppCrashC__XX_real(JNIEnv* env, jobject thiz)
493{ 501{
1171 // -works- (*jnienv2)->CallStaticObjectMethod(jnienv2, NavitGraphicsClass2, return_generic_int, id, i); 1179 // -works- (*jnienv2)->CallStaticObjectMethod(jnienv2, NavitGraphicsClass2, return_generic_int, id, i);
1172 //DBG // dbg(0,"xa2\n"); 1180 //DBG // dbg(0,"xa2\n");
1173} 1181}
1174 1182
1175 1183
1176
1177JNIEXPORT void JNICALL
1178Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius)
1179{
1180 COFFEE_TRY_JNI(env, Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(env, thiz, id, partial, str, str_town, str_hn, search_flags, search_country, latlon, radius));
1181}
1182
1183
1184JNIEXPORT void JNICALL 1184JNIEXPORT void JNICALL
1185Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius) 1185Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius)
1186{ 1186{
1187#ifdef NAVIT_FUNC_CALLS_DEBUG_PRINT 1187#ifdef NAVIT_FUNC_CALLS_DEBUG_PRINT
1188 dbg(0,"+#+:enter\n"); 1188 dbg(0,"+#+:enter\n");
1312 search_full_world(s, partial, search_flags, &my_jni_object, &g7, radius); 1312 search_full_world(s, partial, search_flags, &my_jni_object, &g7, radius);
1313 } 1313 }
1314 } 1314 }
1315 1315
1316 (*env)->ReleaseStringUTFChars(env, str, s); 1316 (*env)->ReleaseStringUTFChars(env, str, s);
1317}
1318
1319
1320JNIEXPORT void JNICALL
1321Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList(JNIEnv* env, jobject thiz, int id, int partial, jobject str, jobject str_town, jobject str_hn, int search_flags, jobject search_country, jobject latlon, int radius)
1322{
1323 COFFEE_TRY_JNI(env, Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackSearchResultList__XX_real(env, thiz, id, partial, str, str_town, str_hn, search_flags, search_country, latlon, radius));
1317} 1324}
1318 1325
1319JNIEXPORT jint JNICALL 1326JNIEXPORT jint JNICALL
1320Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackDestinationValid(JNIEnv* env, jobject thiz) 1327Java_com_zoffcc_applications_zanavi_NavitGraphics_CallbackDestinationValid(JNIEnv* env, jobject thiz)
1321{ 1328{

Legend:
Removed from v.55  
changed lines
  Added in v.56

   
Visit the ZANavi Wiki