Revise background scan routine
[platform/core/connectivity/net-config.git] / include / network-accessibility.h
1 /*
2 *  internet-accessibility check
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 __NETCONFIG_NETWORK_ACCESSIBILITY_H__
21 #define __NETCONFIG_NETWORK_ACCESSIBILITY_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 void netconfig_internet_accessibility_init(void);
28 void netconfig_internet_accessibility_deinit(void);
29
30 void netconfig_check_internet_accessibility(void);
31 void netconfig_stop_internet_check(void);
32
33 /* Alert: Please do not use netconfig_get_internet_status() API to get the
34  * status of Internet availability on general Wifi access points, as this module
35  * primarily checks for Internet availability on portal enabled Wifi access
36  * points, so we only check for below criteria in server's response to conclude
37  * whether Internet is accessible.
38  * 1) If the HTTP status != 302
39  * 2) If the HTTP status != (200 with redirection),
40 */
41 gboolean netconfig_get_internet_status();
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif /* __NETCONFIG_NETWORK_ACCESSIBILITY_H__ */