X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fsrc%2Fprovider%2FNSProviderSystem.h;h=aa14921d88848de1af06b614217aa1e409fc6162;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=a6c7edbc40686bcd3e86edabcdc08636ff33aa48;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/src/provider/NSProviderSystem.h b/service/notification/src/provider/NSProviderSystem.h index a6c7edb..aa14921 100644 --- a/service/notification/src/provider/NSProviderSystem.h +++ b/service/notification/src/provider/NSProviderSystem.h @@ -1,50 +1,55 @@ -//****************************************************************** -// -// Copyright 2016 Samsung Electronics All Rights Reserved. -// -//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -#ifndef _NS_PROVIDER_SYSTEM__H_ -#define _NS_PROVIDER_SYSTEM__H_ - -#include -#include "logger.h" -#include "NSCommon.h" -#include "NSConstants.h" -#include "oic_malloc.h" -#include "NSStructs.h" -#include "NSUtil.h" - -void NSSetProviderConnectionState(NSConnectionState state); -NSConnectionState NSGetProviderConnectionState(); - -void NSInitProviderInfo(const char * userInfo); -void NSDeinitProviderInfo(); -NSProviderInfo * NSGetProviderInfo(); -const char * NSGetUserInfo(); -bool NSGetPolicy(); -void NSSetPolicy(bool policy); -bool NSGetResourceSecurity(); -void NSSetResourceSecurity(bool secured); - -#if (defined WITH_CLOUD && defined RD_CLIENT) -void NSSetRemoteServerAddress(char *serverAddress); -void NSDeleteRemoteServerAddress(char *serverAddress); -bool NSIsRemoteServerAddress(char *serverAddress); -#endif - -#endif /* _NS_PROVIDER_SYSTEM__H_ */ +//****************************************************************** +// +// Copyright 2016 Samsung Electronics All Rights Reserved. +// +//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= + +#ifndef _NS_PROVIDER_SYSTEM__H_ +#define _NS_PROVIDER_SYSTEM__H_ + +#include +#include "logger.h" +#include "NSCommon.h" +#include "NSConstants.h" +#include "oic_malloc.h" +#include "NSStructs.h" +#include "NSUtil.h" + +void NSSetProviderConnectionState(NSConnectionState state); +NSConnectionState NSGetProviderConnectionState(); + +void NSInitProviderInfo(const char * userInfo); +void NSDeinitProviderInfo(); +NSProviderInfo * NSGetProviderInfo(); +const char * NSGetUserInfo(); +bool NSGetPolicy(); +void NSSetPolicy(bool policy); +bool NSGetResourceSecurity(); +void NSSetResourceSecurity(bool secured); + +#ifdef WITH_MQ +void NSSetMQServerInfo(const char * serverUri, OCDevAddr * devAddr); +NSMQServerInfo * NSGetMQServerInfo(); +#endif + +#if (defined WITH_CLOUD) +void NSSetRemoteServerAddress(char *serverAddress); +void NSDeleteRemoteServerAddress(char *serverAddress); +bool NSIsRemoteServerAddress(char *serverAddress); +#endif + +#endif /* _NS_PROVIDER_SYSTEM__H_ */