1 //******************************************************************
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 #ifndef _NS_PROVIDER_SYSTEM__H_
22 #define _NS_PROVIDER_SYSTEM__H_
27 #include "NSConstants.h"
28 #include "oic_malloc.h"
29 #include "NSStructs.h"
32 void NSSetProviderConnectionState(NSConnectionState state);
33 NSConnectionState NSGetProviderConnectionState();
35 void NSInitProviderInfo(const char * userInfo);
36 void NSDeinitProviderInfo();
37 NSProviderInfo * NSGetProviderInfo();
38 const char * NSGetUserInfo();
40 void NSSetPolicy(bool policy);
41 bool NSGetResourceSecurity();
42 void NSSetResourceSecurity(bool secured);
45 void NSSetMQServerInfo(const char * serverUri, OCDevAddr * devAddr);
46 NSMQServerInfo * NSGetMQServerInfo();
49 #if (defined WITH_CLOUD)
50 void NSSetRemoteServerAddress(char *serverAddress);
51 void NSDeleteRemoteServerAddress(char *serverAddress);
52 bool NSIsRemoteServerAddress(char *serverAddress);
55 #endif /* _NS_PROVIDER_SYSTEM__H_ */