From: Mu-Woong Lee Date: Wed, 11 May 2016 08:29:23 +0000 (+0900) Subject: Make the geofence event provider not unloadable X-Git-Tag: submit/tizen/20160517.020001^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41ec4e106979a84b2b461b3edbd1f60fb3329524;p=platform%2Fcore%2Fcontext%2Fcontext-provider.git Make the geofence event provider not unloadable The geofence event provider should not be unloaded, even if it is not used anymore. Dynamically unloading it may cause some glib-related issues. Change-Id: Iafa6251feac361742a2eae332f92b2d24a11f43c Signed-off-by: Mu-Woong Lee --- diff --git a/src/geofence/PlaceGeofenceProvider.cpp b/src/geofence/PlaceGeofenceProvider.cpp index 17a096e..10f7923 100644 --- a/src/geofence/PlaceGeofenceProvider.cpp +++ b/src/geofence/PlaceGeofenceProvider.cpp @@ -47,6 +47,11 @@ bool PlaceGeofenceProvider::isSupported() return supported; } +bool PlaceGeofenceProvider::unloadable() +{ + return false; +} + int PlaceGeofenceProvider::subscribe(Json option, Json *requestResult) { int placeId = -1; diff --git a/src/geofence/PlaceGeofenceProvider.h b/src/geofence/PlaceGeofenceProvider.h index c09ea1d..5556fd5 100644 --- a/src/geofence/PlaceGeofenceProvider.h +++ b/src/geofence/PlaceGeofenceProvider.h @@ -36,6 +36,8 @@ namespace ctx { bool isSupported(); void getPrivilege(std::vector &privilege); + bool unloadable(); + private: std::map __handleMap; };