Remove syspopup
[platform/core/connectivity/net-config.git] / include / util.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
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_UTIL_H__
21 #define __NETCONFIG_UTIL_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include <glib.h>
28
29 #include "wifi.h"
30
31 #define NET_CONFIG_APP_NAME     "net-config"
32
33 GKeyFile *netconfig_keyfile_load(const char *pathname);
34 void netconfig_keyfile_save(GKeyFile *keyfile, const char *pathname);
35
36 void netconfig_start_timer_seconds(guint secs,
37                 gboolean(*callback) (gpointer), void *user_data, guint *timer_id);
38 void netconfig_start_timer(guint msecs,
39                 gboolean(*callback) (gpointer), void *user_data, guint *timer_id);
40 void netconfig_stop_timer(guint *timer_id);
41
42 void netconfig_wifi_device_picker_service_start(void);
43 void netconfig_wifi_device_picker_service_stop(void);
44
45 gboolean netconfig_is_wifi_direct_on(void);
46 gboolean netconfig_is_wifi_tethering_on(void);
47
48 gboolean netconfig_execute_file(const char *file_path,
49                 char *const args[], char *const env[]);
50
51 gboolean netconfig_iface_wifi_launch_direct(NetconfigWifi *wifi, GError **error);
52 void netconfig_set_wifi_mac_address(void);
53
54 void netconfig_add_wifi_found_notification(void);
55 void netconfig_del_wifi_found_notification(void);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif /* __NETCONFIG_UTIL_H__ */