Replace the macro EXTAPI with SO_EXPORT 26/66326/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 18 Apr 2016 10:14:50 +0000 (19:14 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 18 Apr 2016 10:14:50 +0000 (19:14 +0900)
Change-Id: Id4418789b8e408cd1cd30f6c412574f105e503f5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/custom/CustomContextProvider.cpp
src/device/DeviceContextProvider.cpp
src/place/PlaceContextProvider.cpp
src/statistics/StatisticsContextProvider.cpp

index 13371b5..61990b0 100644 (file)
@@ -45,13 +45,13 @@ void unregisterProvider(const char* subject)
        ctx::context_manager::unregisterProvider(subject);
 }
 
-EXTAPI ctx::ContextProviderBase* ctx::custom_context_provider::create(void *data)
+SO_EXPORT ctx::ContextProviderBase* ctx::custom_context_provider::create(void *data)
 {
        // Already created in addItem() function. Return corresponding custom provider
        return __customMap[static_cast<const char*>(data)];
 }
 
-EXTAPI void ctx::custom_context_provider::destroy(void *data)
+SO_EXPORT void ctx::custom_context_provider::destroy(void *data)
 {
        std::map<std::string, ctx::CustomBase*>::iterator it = __customMap.find(static_cast<char*>(data));
        if (it != __customMap.end()) {
@@ -60,7 +60,7 @@ EXTAPI void ctx::custom_context_provider::destroy(void *data)
        }
 }
 
-EXTAPI bool ctx::initCustomContextProvider()
+SO_EXPORT bool ctx::initCustomContextProvider()
 {
        // Create custom template db
        std::string q = std::string("CREATE TABLE IF NOT EXISTS context_trigger_custom_template ")
@@ -99,7 +99,7 @@ EXTAPI bool ctx::initCustomContextProvider()
        return true;
 }
 
-EXTAPI int ctx::custom_context_provider::addItem(std::string subject, std::string name, ctx::Json tmpl, const char* owner, bool isInit)
+SO_EXPORT int ctx::custom_context_provider::addItem(std::string subject, std::string name, ctx::Json tmpl, const char* owner, bool isInit)
 {
        std::map<std::string, ctx::CustomBase*>::iterator it;
        it = __customMap.find(subject);
@@ -131,7 +131,7 @@ EXTAPI int ctx::custom_context_provider::addItem(std::string subject, std::strin
        return ERR_NONE;
 }
 
-EXTAPI int ctx::custom_context_provider::removeItem(std::string subject)
+SO_EXPORT int ctx::custom_context_provider::removeItem(std::string subject)
 {
        std::map<std::string, ctx::CustomBase*>::iterator it;
        it = __customMap.find(subject);
@@ -148,7 +148,7 @@ EXTAPI int ctx::custom_context_provider::removeItem(std::string subject)
        return ERR_NONE;
 }
 
-EXTAPI int ctx::custom_context_provider::publishData(std::string subject, ctx::Json fact)
+SO_EXPORT int ctx::custom_context_provider::publishData(std::string subject, ctx::Json fact)
 {
        std::map<std::string, ctx::CustomBase*>::iterator it;
        it = __customMap.find(subject);
index 0f31ed6..a6c2b85 100644 (file)
@@ -75,7 +75,7 @@ void registerProvider(const char *subject, const char *privilege)
        Provider::submitTriggerItem();
 }
 
-EXTAPI bool ctx::initDeviceContextProvider()
+SO_EXPORT bool ctx::initDeviceContextProvider()
 {
        registerProvider<DeviceStatusAlarm>(DEVICE_ST_SUBJ_ALARM, NULL);
        registerProvider<DeviceStatusTime>(DEVICE_ST_SUBJ_TIME, NULL);
index dabdac0..363ed86 100644 (file)
@@ -36,7 +36,7 @@ void registerProvider(const char *subject, const char *privilege)
        ctx::context_manager::registerProvider(subject, providerInfo);
 }
 
-EXTAPI bool ctx::initPlaceContextProvider()
+SO_EXPORT bool ctx::initPlaceContextProvider()
 {
 #ifdef _MOBILE_
        registerProvider<PlaceGeofenceProvider>(PLACE_SUBJ_GEOFENCE, PLACE_PRIV_GEOFENCE);
index 63bc618..7c3123d 100644 (file)
@@ -43,7 +43,7 @@ void registerProvider(const char *subject, const char *privilege)
        ctx::context_manager::registerProvider(subject, providerInfo);
 }
 
-EXTAPI bool ctx::initStatisticsContextProvider()
+SO_EXPORT bool ctx::initStatisticsContextProvider()
 {
        AppStatisticsProvider::create(NULL);
        registerProvider<AppStatisticsProvider>(APP_SUBJ_RECENTLY_USED, APP_HISTORY_PRIV);