######################################################################
# Source files and Targets
######################################################################
+Import('notificationCommonStaticObjs')
+Import('notificationCommonSharedObjs')
notification_consumer_src = [
- env.Glob('src/*.cpp'),env.Glob('../common/*.cpp')]
+ env.Glob('src/*.cpp'),notificationCommonSharedObjs]
consumersdk = notification_env.SharedLibrary('notification_consumer_wrapper', notification_consumer_src)
notification_env.InstallTarget(consumersdk, 'libnotification_consumer_wrapper')
notification_env.UserInstallTargetLib(consumersdk, 'libnotification_consumer_wrapper')
+notification_consumer_src = [
+ env.Glob('src/*.cpp'),notificationCommonStaticObjs]
+
consumersdk = notification_env.StaticLibrary('notification_consumer_wrapper', notification_consumer_src)
notification_env.InstallTarget(consumersdk, 'libnotification_consumer_wrapper')
notification_env.UserInstallTargetLib(consumersdk, 'libnotification_consumer_wrapper')
\r
NSMessage *nsMessage = new NSMessage(message);\r
\r
- NS_LOG_V(DEBUG, "getAcceptedProviders Size : %d",\r
+ NS_LOG_V(DEBUG, "getAcceptedProviders Size : %d", (int)\r
NSConsumerService::getInstance()->getAcceptedProviders().size());\r
for (auto it : NSConsumerService::getInstance()->getAcceptedProviders())\r
{\r
NSResult NSConsumerService::enableRemoteService(const std::string &serverAddress)\r
{\r
NS_LOG(DEBUG, "enableRemoteService - IN");\r
+ NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_CLOUD\r
result = (NSResult) NSConsumerEnableRemoteService(OICStrdup(serverAddress.c_str()));\r
while (iter)\r
{\r
NS_LOG_V(DEBUG, "Topic Name : %s", iter->topicName);\r
- NS_LOG_V(DEBUG, "Topic State : %d", iter->state);\r
+ NS_LOG_V(DEBUG, "Topic State : %d", (int) iter->state);\r
iter = iter->next;\r
}\r
}\r
######################################################################
# Source files and Targets
######################################################################
+notificationCommonStaticObjs = [
+ notification_env.Object('../common/NSMediaContents.cpp'),
+ notification_env.Object('../common/NSMessage.cpp'),
+ notification_env.Object('../common/NSSyncInfo.cpp'),
+ notification_env.Object('../common/NSTopic.cpp'),
+ notification_env.Object('../common/NSTopicsList.cpp')]
+
+notificationCommonSharedObjs = [
+ notification_env.SharedObject('../common/NSMediaContents.cpp'),
+ notification_env.SharedObject('../common/NSMessage.cpp'),
+ notification_env.SharedObject('../common/NSSyncInfo.cpp'),
+ notification_env.SharedObject('../common/NSTopic.cpp'),
+ notification_env.SharedObject('../common/NSTopicsList.cpp')]
notification_provider_src = [
- env.Glob('src/*.cpp'),env.Glob('../common/*.cpp')]
+ env.Glob('src/*.cpp'),notificationCommonSharedObjs]
providersdk = notification_env.SharedLibrary('notification_provider_wrapper', notification_provider_src)
notification_env.InstallTarget(providersdk, 'libnotification_provider_wrapper')
notification_env.UserInstallTargetLib(providersdk, 'libnotification_provider_wrapper')
+notification_provider_src = [
+ env.Glob('src/*.cpp'),notificationCommonStaticObjs]
+
providersdk = notification_env.StaticLibrary('notification_provider_wrapper', notification_provider_src)
notification_env.InstallTarget(providersdk, 'libnotification_provider_wrapper')
notification_env.UserInstallTargetLib(providersdk, 'libnotification_provider_wrapper')
+
+Export('notificationCommonStaticObjs')
+Export('notificationCommonSharedObjs')
NSResult NSProviderService::enableRemoteService(const std::string &serverAddress)\r
{\r
NS_LOG(DEBUG, "enableRemoteService - IN");\r
+ NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_CLOUD\r
result = (NSResult) NSProviderEnableRemoteService(OICStrdup(serverAddress.c_str()));\r
NSResult NSProviderService::disableRemoteService(const std::string &serverAddress)\r
{\r
NS_LOG(DEBUG, "disableRemoteService - IN");\r
+ NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_CLOUD\r
result = (NSResult) NSProviderDisableRemoteService(OICStrdup(serverAddress.c_str()));\r
::NSMessage *message = NSCreateMessage();\r
NSMessage *nsMessage = new NSMessage(message);\r
\r
- NS_LOG_V(DEBUG, "Message ID : %lld", nsMessage->getMessageId());\r
+ NS_LOG_V(DEBUG, "Message ID : %lld", (long long int) nsMessage->getMessageId());\r
NS_LOG_V(DEBUG, "Provider ID : %s", nsMessage->getProviderId().c_str());\r
NS_LOG(DEBUG, "createMessage - OUT");\r
\r