Reduce unnecessary directory depth
[apps/native/ug-wifi-efl.git] / sources / libraries / WlanManager / include / wlan_connection.h
1 /*
2  * Wi-Fi
3  *
4  * Copyright 2012 Samsung Electronics Co., Ltd
5  *
6  * Licensed under the Flora License, Version 1.1 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.tizenopensource.org/license
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __WLAN_ALTERNATIVE_CONNECTION_H__
21 #define __WLAN_ALTERNATIVE_CONNECTION_H__
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27
28 #include <glib.h>
29 #include <wifi-manager.h>
30
31 typedef enum {
32         WPS_PIN,
33         WPS_BTN,
34         WPS_NONE
35 } wps_type_t;
36
37 int wlan_initialize(wifi_manager_h *wifi);
38 int wlan_disconnect(wifi_manager_ap_h ap, wifi_manager_disconnected_cb callback, void *user_data);
39 int wlan_connect(wifi_manager_ap_h ap, wifi_manager_connected_cb callback, void *user_data,
40                 wps_type_t type, const char *pin);
41 gboolean wlan_connetion_next_item_exist(void);
42 gboolean wlan_is_same_with_current(wifi_manager_ap_h ap);
43 void wlan_connect_cleanup(void);
44 void wlan_connect_next();
45 void wlan_go_fast_next();
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* __WLAN_ALTERNATIVE_CONNECTION_H__ */