if (__get_plugin_interface(v)) {
/* Notify the Plugin, that the view is created */
- __get_plugin_interface(v)->maps_plugin_create_map_view(*view, __maps_view_ready);
+ if (__get_plugin_interface(v)->maps_plugin_create_map_view)
+ __get_plugin_interface(v)->maps_plugin_create_map_view(*view, __maps_view_ready);
+ else
+ MAPS_LOGE("ERROR!! maps_plugin_create_map_view function pointer is null");
/* Set up zoom and rotation */
- __get_plugin_interface(v)->maps_plugin_get_min_zoom_level(v, &v->min_zoom_level);
- __get_plugin_interface(v)->maps_plugin_get_max_zoom_level(v, &v->max_zoom_level);
+ if (__get_plugin_interface(v)->maps_plugin_get_min_zoom_level)
+ __get_plugin_interface(v)->maps_plugin_get_min_zoom_level(v, &v->min_zoom_level);
+ else
+ MAPS_LOGE("ERROR!! maps_plugin_get_min_zoom_level function pointer is null");
+
+ if (__get_plugin_interface(v)->maps_plugin_get_max_zoom_level)
+ __get_plugin_interface(v)->maps_plugin_get_max_zoom_level(v, &v->max_zoom_level);
+ else
+ MAPS_LOGE("ERROR!! maps_plugin_get_max_zoom_level function pointer is null");
}
if (v->min_zoom_level <= 0)
ecore_animator_del(v->animator);
/* Notify the Plugin, that the view is to be destroyed */
- __get_plugin_interface(view)->maps_plugin_destroy_map_view(view);
+ if (__get_plugin_interface(view)) {
+ if (__get_plugin_interface(view)->maps_plugin_destroy_map_view)
+ __get_plugin_interface(view)->maps_plugin_destroy_map_view(view);
+ else
+ MAPS_LOGE("ERROR!! maps_plugin_destroy_map_view function pointer is null");
+ }
/* Destroy a visual panel */
if (v->panel)
MAPS_LOGD("maps_plugin_cancel_request:\t\t%p",
itf->maps_plugin_cancel_request);
+
+ MAPS_LOGD("maps_plugin_create_map_view:\t\t%p",
+ itf->maps_plugin_create_map_view);
+ MAPS_LOGD("maps_plugin_destroy_map_view:\t\t%p",
+ itf->maps_plugin_destroy_map_view);
MAPS_LOGD("maps_plugin_capture_snapshot:\t\t%p",
itf->maps_plugin_capture_snapshot);
MAPS_LOGD("*********************************************");