Make the geofence event provider not unloadable 46/69046/2
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 11 May 2016 08:29:23 +0000 (17:29 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 11 May 2016 08:30:51 +0000 (01:30 -0700)
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 <muwoong.lee@samsung.com>
src/geofence/PlaceGeofenceProvider.cpp
src/geofence/PlaceGeofenceProvider.h

index 17a096e834c3c4a5c2da9de1823c87a101c86786..10f7923bd183549bdb70b4997cc5492f419fd937 100644 (file)
@@ -47,6 +47,11 @@ bool PlaceGeofenceProvider::isSupported()
        return supported;
 }
 
+bool PlaceGeofenceProvider::unloadable()
+{
+       return false;
+}
+
 int PlaceGeofenceProvider::subscribe(Json option, Json *requestResult)
 {
        int placeId = -1;
index c09ea1d40a64fec20dc15000d0fc40e9329ffaf1..5556fd529a99f7062f81889291ab6ab004f29cf9 100644 (file)
@@ -36,6 +36,8 @@ namespace ctx {
                bool isSupported();
                void getPrivilege(std::vector<const char*> &privilege);
 
+               bool unloadable();
+
        private:
                std::map<int, GeofenceMonitorHandle*> __handleMap;
        };