Merge "Merge branch 'master' into notification-service" into notification-service
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / tizen-sdb / EnrolleeSample / easysetup_wifi_conn.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 EASYSETUP_WIFI_CONN_H__
22 #define EASYSETUP_WIFI_CONN_H__
23 #ifdef __cplusplus
24
25 extern "C"
26 {
27 #endif
28
29 typedef enum
30 {
31     /** No error.*/ 
32     WIFI_NO_ERROR = 0,
33     /** Tizen WiFi Init Error.*/
34     WIFI_INIT_ERROR,
35     /** Tizen WiFi Deinit Error.*/
36     WIFI_DEINIT_ERROR,
37     /** Tizen WiFi Activate Error.*/
38     WIFI_ACTIVATE_ERROR,
39     /** Tizen WiFi Scan Error.*/
40     WIFI_SCAN_ERROR,
41     /** Tizen WiFi Connection Error.*/
42     WIFI_CONN_ERROR,
43     /** Tizen WiFi Not Found SSID Error.*/
44     WIFI_NOTFOUND_SSID_ERROR,
45     /** Tizen WiFi Wrong Password Error.*/
46     WIFI_WRONG_PWD_ERROR,
47 } WiFiConnErrCode;
48
49 WiFiConnErrCode TizenWiFiInit(void);
50 WiFiConnErrCode TizenWiFiDeinit(void);
51 WiFiConnErrCode TizenWiFiScanStart(void);
52 WiFiConnErrCode TizenWiFiConn(char *ssid, char* passwd);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* EASYSETUP_WIFI_CONN_H__ */