+[Version] maps-plugin-mapzen_0.0.2
+[Date] 08 Feb 2017
+[Title] fix call EXPOST_API of other plugin
+[Developer] Jongmun Woo <jongmun.woo@samsung.com>
+
[Version] maps-plugin-mapzen_0.0.1
[Date] 27 May 2016
[Title] Initialize version
EXPORT_API int maps_plugin_init_module(maps_plugin_h *plugin, const char* module)
{
+ MAPS_LOGD("maps_plugin_init_module");
if (!plugin)
return MAPS_ERROR_INVALID_PARAMETER;
EXPORT_API int maps_plugin_init(maps_plugin_h *plugin)
{
- return maps_plugin_init_module(plugin, NULL);
+ MAPS_LOGD("maps_plugin_init");
+ if (!plugin)
+ return MAPS_ERROR_INVALID_PARAMETER;
+
+ int ret = MAPS_ERROR_NONE;
+ if (!__plugin)
+ ret = mapzen_init();
+
+ if (ret == MAPS_ERROR_NONE) {
+ __maps_service_instance_count++;
+ __plugin = plugin;
+ }
+
+ return convert_mapzen_error_to_maps_error(ret);
}
EXPORT_API int maps_plugin_shutdown(maps_plugin_h plugin)