[net-config]:Refactor the TDLS Discovery Feature
[platform/core/connectivity/net-config.git] / include / wifi-tdls.h
index 3b9bf0e..616e540 100755 (executable)
 #include <glib.h>
 #include "netsupplicant.h"
 
+
+typedef enum {
+       NETCONFIG_ERROR_TDLS_NO_ERROR                           = 0x00,
+       NETCONFIG_ERROR_TDLS_FAIL_DISCOVER                      = 0x01,
+       NETCONFIG_ERROR_TDLS_FAIL_DISCONNECT            = 0x02,
+       NETCONFIG_ERROR_TDLS_FAIL_CONNECT                       = 0x03,
+       NETCONFIG_ERROR_TDLS_ALREADY_DONE                       = 0x04,
+} netconfig_tdls_error_e;
+
 void netconfig_wifi_tdls_peer_found_event(GVariant *message);
 void netconfig_wifi_tdls_connected_event(GVariant *message);
 void netconfig_wifi_tdls_disconnected_event(GVariant *message);
@@ -35,7 +44,6 @@ gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);
 gboolean handle_tdls_connect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
 gboolean handle_tdls_discover(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
 
-
 #ifdef __cplusplus
 }
 #endif