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 17a096e..10f7923 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 c09ea1d..5556fd5 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;
        };