wifi: Stack based crash risk fixed
[framework/connectivity/connman.git] / gsupplicant / gsupplicant.h
index 5d8c617..1da9661 100644 (file)
@@ -114,6 +114,13 @@ struct _GSupplicantSSID {
 
 typedef struct _GSupplicantSSID GSupplicantSSID;
 
+/* global API */
+typedef void (*GSupplicantCountryCallback) (void *user_data);
+
+int g_supplicant_set_country(const char *alpha2,
+                               GSupplicantCountryCallback callback,
+                                               const void *user_data);
+
 /* Interface API */
 struct _GSupplicantInterface;
 
@@ -144,7 +151,7 @@ int g_supplicant_interface_disconnect(GSupplicantInterface *interface,
 
 void g_supplicant_interface_set_data(GSupplicantInterface *interface,
                                                                void *data);
-const void *g_supplicant_interface_get_data(GSupplicantInterface *interface);
+void *g_supplicant_interface_get_data(GSupplicantInterface *interface);
 const char *g_supplicant_interface_get_ifname(GSupplicantInterface *interface);
 const char *g_supplicant_interface_get_driver(GSupplicantInterface *interface);
 GSupplicantState g_supplicant_interface_get_state(GSupplicantInterface *interface);
@@ -174,6 +181,7 @@ struct _GSupplicantCallbacks {
        void (*scan_finished) (GSupplicantInterface *interface);
        void (*network_added) (GSupplicantNetwork *network);
        void (*network_removed) (GSupplicantNetwork *network);
+       void (*debug) (const char *str);
 };
 
 typedef struct _GSupplicantCallbacks GSupplicantCallbacks;