From: Mu-Woong Lee Date: Mon, 18 Apr 2016 10:14:50 +0000 (+0900) Subject: Replace the macro EXTAPI with SO_EXPORT X-Git-Tag: submit/tizen/20160503.015801^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8dd9349b0f9ebc733ab117c58fd239ed4d760b69;p=platform%2Fcore%2Fcontext%2Fcontext-provider.git Replace the macro EXTAPI with SO_EXPORT Change-Id: Id4418789b8e408cd1cd30f6c412574f105e503f5 Signed-off-by: Mu-Woong Lee --- diff --git a/src/custom/CustomContextProvider.cpp b/src/custom/CustomContextProvider.cpp index 13371b5..61990b0 100644 --- a/src/custom/CustomContextProvider.cpp +++ b/src/custom/CustomContextProvider.cpp @@ -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(data)]; } -EXTAPI void ctx::custom_context_provider::destroy(void *data) +SO_EXPORT void ctx::custom_context_provider::destroy(void *data) { std::map::iterator it = __customMap.find(static_cast(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::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::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::iterator it; it = __customMap.find(subject); diff --git a/src/device/DeviceContextProvider.cpp b/src/device/DeviceContextProvider.cpp index 0f31ed6..a6c2b85 100644 --- a/src/device/DeviceContextProvider.cpp +++ b/src/device/DeviceContextProvider.cpp @@ -75,7 +75,7 @@ void registerProvider(const char *subject, const char *privilege) Provider::submitTriggerItem(); } -EXTAPI bool ctx::initDeviceContextProvider() +SO_EXPORT bool ctx::initDeviceContextProvider() { registerProvider(DEVICE_ST_SUBJ_ALARM, NULL); registerProvider(DEVICE_ST_SUBJ_TIME, NULL); diff --git a/src/place/PlaceContextProvider.cpp b/src/place/PlaceContextProvider.cpp index dabdac0..363ed86 100644 --- a/src/place/PlaceContextProvider.cpp +++ b/src/place/PlaceContextProvider.cpp @@ -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(PLACE_SUBJ_GEOFENCE, PLACE_PRIV_GEOFENCE); diff --git a/src/statistics/StatisticsContextProvider.cpp b/src/statistics/StatisticsContextProvider.cpp index 63bc618..7c3123d 100644 --- a/src/statistics/StatisticsContextProvider.cpp +++ b/src/statistics/StatisticsContextProvider.cpp @@ -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(APP_SUBJ_RECENTLY_USED, APP_HISTORY_PRIV);