1.apply WPS for geofence
[platform/core/location/geofence-server.git] / geofence-server / src / geofence_server_wifi.h
1 /* Copyright 2014 Samsung Electronics Co., Ltd All Rights Reserved
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 /**
17  * @file        geofence_server_wifi.h
18  * @brief       Geofence server wifi related APIs
19  *
20  */
21
22 #ifndef GEOFENCE_MANAGER_WIFI_H_
23 #define GEOFENCE_MANAGER_WIFI_H_
24
25 /**
26 * @brief        Handles the wifi scan results
27 * @param[in] ap_list    The ap list.
28 * @param[in] user_data  The user data.
29 * @see None.
30 */
31 void handle_scan_result(GList *ap_list, void *user_data);
32
33 /**
34 * @brief        Indicated the wifi scan results
35 * @param[in] ap_list    The ap list.
36 * @param[in] user_data  The user data.
37 * @see None.
38 */
39 void wifi_indication(GList *ap_list, void *user_data);
40
41 /**
42  * @brief       Gets Wifi enabled status
43  * @Param[in]   data            The status of the wifi connection
44  * @return              gboolean
45  * @retval      false if disabled and true if enabled
46  * @see None.
47  */
48 gboolean geofence_get_enable_wifi_state(gpointer data);
49
50 /**
51  * @brief       Handles Wifi connection status change
52  * @Param[in]   state           The status of the wifi connection
53  * @Param[in]   ap                      The wifi ap
54  * @Param[in]   user_data       The user data
55  * @see None.
56  */
57 void wifi_conn_state_changed(wifi_connection_state_e state, wifi_ap_h ap, void *user_data);
58
59 /**
60  * @brief       Wifi device status change
61  * @Param[in]   state           The status of the wifi device
62  * @Param[in]   user_data       The user data
63  * @see None.
64  */
65 void wifi_device_state_changed(wifi_device_state_e state, void *user_data);
66
67 /**
68  * @brief       Wifi AP rssi level change
69  * @Param[in]   rssi_level      The level of the RSSI received
70  * @Param[in]   user_data       The user data
71  * @see None.
72 **/
73 void wifi_rssi_level_changed(wifi_rssi_level_e rssi_level, void *user_data);
74 #endif /* GEOFENCE_MANAGER_WIFI_H_ */