replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / notification / src / provider / NSProviderSystem.h
1 //******************************************************************
2 //
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
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
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
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.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef _NS_PROVIDER_SYSTEM__H_
22 #define _NS_PROVIDER_SYSTEM__H_
23
24 #include <string.h>
25 #include "logger.h"
26 #include "NSCommon.h"
27 #include "NSConstants.h"
28 #include "oic_malloc.h"
29 #include "NSStructs.h"
30 #include "NSUtil.h"
31
32 void NSSetProviderConnectionState(NSConnectionState state);
33 NSConnectionState NSGetProviderConnectionState();
34
35 void NSInitProviderInfo(const char * userInfo);
36 void NSDeinitProviderInfo();
37 NSProviderInfo * NSGetProviderInfo();
38 const char * NSGetUserInfo();
39 bool NSGetPolicy();
40 void NSSetPolicy(bool policy);
41 bool NSGetResourceSecurity();
42 void NSSetResourceSecurity(bool secured);
43
44 #ifdef WITH_MQ
45 void NSSetMQServerInfo(const char * serverUri, OCDevAddr * devAddr);
46 NSMQServerInfo * NSGetMQServerInfo();
47 #endif
48
49 #if (defined WITH_CLOUD)
50 void NSSetRemoteServerAddress(char *serverAddress);
51 void NSDeleteRemoteServerAddress(char *serverAddress);
52 bool NSIsRemoteServerAddress(char *serverAddress);
53 #endif
54
55 #endif /* _NS_PROVIDER_SYSTEM__H_ */