2 * Network Configuration Module
4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef __NETCONFIG_UTIL_H__
21 #define __NETCONFIG_UTIL_H__
31 #define NET_CONFIG_APP_NAME "net-config"
33 GKeyFile *netconfig_keyfile_load(const char *pathname);
34 void netconfig_keyfile_save(GKeyFile *keyfile, const char *pathname);
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);
42 void netconfig_wifi_device_picker_service_start(void);
43 void netconfig_wifi_device_picker_service_stop(void);
45 gboolean netconfig_is_wifi_direct_on(void);
46 gboolean netconfig_is_wifi_tethering_on(void);
48 gboolean netconfig_execute_file(const char *file_path,
49 char *const args[], char *const env[]);
51 gboolean netconfig_iface_wifi_launch_direct(NetconfigWifi *wifi, GError **error);
52 void netconfig_set_wifi_mac_address(void);
54 void netconfig_add_wifi_found_notification(void);
55 void netconfig_del_wifi_found_notification(void);
61 #endif /* __NETCONFIG_UTIL_H__ */