diff options
author | jomui <jongmun.woo@samsung.com> | 2017-08-23 11:29:19 +0900 |
---|---|---|
committer | jomui <jongmun.woo@samsung.com> | 2017-08-23 12:02:35 +0900 |
commit | ddc049d30897aef9ecad47e64db5d4f2adc3fc2d (patch) | |
tree | e5ea24256adde7905d4fa23fb08dff3dea04ecca | |
parent | 5e3eb732a735da23aa2fbc149ac5b8dca4e48dd5 (diff) | |
download | maps-plugin-mapzen-ddc049d30897aef9ecad47e64db5d4f2adc3fc2d.tar.gz maps-plugin-mapzen-ddc049d30897aef9ecad47e64db5d4f2adc3fc2d.tar.bz2 maps-plugin-mapzen-ddc049d30897aef9ecad47e64db5d4f2adc3fc2d.zip |
add plugin APIs for addrd Map Service APIs
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I70fe74190d3fa1ad33c97b137e972068cc5e1204
-rw-r--r-- | packaging/maps-plugin-mapzen.spec | 2 | ||||
-rw-r--r-- | src/mapzen_plugin.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/packaging/maps-plugin-mapzen.spec b/packaging/maps-plugin-mapzen.spec index 3cea259..a0463ce 100644 --- a/packaging/maps-plugin-mapzen.spec +++ b/packaging/maps-plugin-mapzen.spec @@ -1,6 +1,6 @@ Name: maps-plugin-mapzen Summary: Tizen Mapzen Maps Plug-in Library -Version: 0.0.3 +Version: 0.0.4 Release: 1 Group: Location/Libraries License: Apache-2.0 and MIT License diff --git a/src/mapzen_plugin.c b/src/mapzen_plugin.c index 702d75a..6bd9124 100644 --- a/src/mapzen_plugin.c +++ b/src/mapzen_plugin.c @@ -1870,3 +1870,17 @@ EXPORT_API int maps_plugin_request_user_consent(const char *provider, maps_servi callback(true, provider, user_data); return MAPS_ERROR_NONE; } + +EXPORT_API int maps_plugin_request_user_consent_with_handle(maps_service_request_user_consent_with_handle_cb callback, void *user_data) +{ + MAPS_LOGD("maps_plugin_request_user_consent_with_handle. Mapzen plugin always gives user consent."); + callback(true, user_data); + return MAPS_ERROR_NONE; +} + +EXPORT_API int maps_plugin_get_user_consent(bool *consent) +{ + MAPS_LOGD("maps_plugin_get_user_consent. Mapzen plugin always gives user consent."); + *consent = true; + return MAPS_ERROR_NONE; +}
\ No newline at end of file |