fix call EXPOST_API of HERE when loaded HERE plugin first 73/113473/2 accepted/tizen/common/20170208.155248 accepted/tizen/mobile/20170208.104556 accepted/tizen/mobile/20170215.085352 accepted/tizen/tv/20170215.085418 accepted/tizen/unified/20170309.033308 accepted/tizen/wearable/20170208.104611 accepted/tizen/wearable/20170215.085437 submit/tizen/20170208.093937 submit/tizen/20170215.021202 submit/tizen_unified/20170308.100408
authorjomui <jongmun.woo@samsung.com>
Wed, 8 Feb 2017 01:05:41 +0000 (10:05 +0900)
committerjomui <jongmun.woo@samsung.com>
Wed, 8 Feb 2017 03:54:52 +0000 (12:54 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: Ieedc338ac268852830dfc5019ca904bb4e6040c5

maps-plugin-mapzen.changes
packaging/maps-plugin-mapzen.spec
src/mapzen_plugin.c

index 21b2937..f1989c3 100644 (file)
@@ -1,3 +1,8 @@
+[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
index 42d27af..515694b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       maps-plugin-mapzen
 Summary:    Tizen Mapzen Maps Plug-in Library
-Version:    0.0.1
+Version:    0.0.2
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0
index 5aaaf8d..24f0698 100644 (file)
@@ -133,6 +133,7 @@ EXPORT_API int maps_plugin_capture_snapshot(maps_view_h view, void **data, int *
 
 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;
 
@@ -150,7 +151,20 @@ EXPORT_API int maps_plugin_init_module(maps_plugin_h *plugin, const char* module
 
 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)