[DA patch]Add timeout configuration
[platform/core/connectivity/wifi-direct-manager.git] / include / wifi-direct-util.h
index d1286bc..5ce735e 100644 (file)
 #ifndef __WIFI_DIRECT_UTIL_H__
 #define __WIFI_DIRECT_UTIL_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
 #define IP2STR(a) (a)[0], (a)[1], (a)[2], (a)[3]
 #if !(__GNUC__ <= 4 && __GNUC_MINOR__ < 8)
 int wfd_util_get_current_time(unsigned long *cur_time);
 #endif
+
+void *wfd_util_plugin_init(wfd_manager_s *manager);
+int wfd_util_plugin_deinit(wfd_manager_s *manager);
+void *wfd_util_prd_plugin_init(wfd_manager_s *manager);
+int wfd_util_prd_plugin_deinit(wfd_manager_s *manager);
+
 gboolean wfd_util_execute_file(const char *file_path,  char *const args[], char *const envs[]);
 int wfd_util_freq_to_channel(int freq);
 int wfd_util_channel_to_freq(int channel);
 int wfd_util_get_phone_name(char *phone_name);
 void wfd_util_set_dev_name_notification();
 void wfd_util_unset_dev_name_notification();
-int wfd_util_set_country();
 
+void wfd_util_check_features(wfd_manager_s *manager);
+void wfd_util_load_wfd_conf(wfd_manager_s *manager);
 int wfd_util_check_wifi_state();
+int wfd_util_check_p2p_hotspot_state();
 int wfd_util_check_mobile_ap_state();
 int wfd_util_wifi_direct_activatable();
 #if 0
@@ -66,10 +78,8 @@ int wfd_util_get_wifi_direct_state();
 int wfd_util_set_wifi_direct_state(int state);
 int wfd_util_get_local_dev_mac(unsigned char *dev_mac);
 
-#ifdef TIZEN_FEATURE_DEFAULT_CONNECTION_AGENT
 int wfd_util_start_wifi_direct_popup();
 int wfd_util_stop_wifi_direct_popup();
-#endif /* TIZEN_FEATURE_DEFAULT_CONNECTION_AGENT */
 
 int wfd_util_dhcps_start(char *ifname);
 int wfd_util_dhcps_wait_ip_leased(wfd_device_s *peer);
@@ -78,10 +88,12 @@ int wfd_util_dhcpc_start(char *ifname, wfd_device_s *peer);
 int wfd_util_dhcpc_stop(char *ifname);
 int wfd_util_local_get_ip(char *ifname, unsigned char *ip_addr, int is_IPv6);
 int wfd_util_dhcpc_get_server_ip(unsigned char* ip_addr);
-#ifdef TIZEN_FEATURE_IP_OVER_EAPOL
 int wfd_util_ip_over_eap_assign(wfd_device_s *peer, const char *ifname);
-#endif /* TIZEN_FEATURE_IP_OVER_EAPOL */
 int wfd_util_ip_unset(const char *ifname);
 gboolean wfd_util_is_remove_group_allowed(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_UTIL_H__ */