Browse Source

dbus: Rename InterfaceCreated to InterfaceAdded

Change signal name to the one defined in documentation and
introspection data.
Witold Sowa 15 years ago
parent
commit
b7e8feec68
2 changed files with 6 additions and 6 deletions
  1. 5 5
      wpa_supplicant/dbus/dbus_new.c
  2. 1 1
      wpa_supplicant/dbus/dbus_new.h

+ 5 - 5
wpa_supplicant/dbus/dbus_new.c

@@ -115,14 +115,14 @@ err:
 
 
 /**
- * wpas_dbus_signal_interface_created - Send a interface created signal
+ * wpas_dbus_signal_interface_added - Send a interface created signal
  * @wpa_s: %wpa_supplicant network interface data
  *
  * Notify listeners about creating new interface
  */
-static void wpas_dbus_signal_interface_created(struct wpa_supplicant *wpa_s)
+static void wpas_dbus_signal_interface_added(struct wpa_supplicant *wpa_s)
 {
-	wpas_dbus_signal_interface(wpa_s, "InterfaceCreated", TRUE);
+	wpas_dbus_signal_interface(wpa_s, "InterfaceAdded", TRUE);
 }
 
 
@@ -1764,7 +1764,7 @@ static int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
 					       obj_desc))
 		goto err;
 
-	wpas_dbus_signal_interface_created(wpa_s);
+	wpas_dbus_signal_interface_added(wpa_s);
 
 	os_free(path);
 	return 0;
@@ -1804,7 +1804,7 @@ static int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
 
 static struct wpas_dbus_callbacks callbacks =
 {
-	.signal_interface_created = wpas_dbus_signal_interface_created,
+	.signal_interface_added = wpas_dbus_signal_interface_added,
 	.signal_interface_removed = wpas_dbus_signal_interface_removed,
 
 	.register_interface = wpas_dbus_register_interface,

+ 1 - 1
wpa_supplicant/dbus/dbus_new.h

@@ -32,7 +32,7 @@ enum wpas_dbus_prop {
 };
 
 struct wpas_dbus_callbacks {
-	void (*signal_interface_created)(struct wpa_supplicant *wpa_s);
+	void (*signal_interface_added)(struct wpa_supplicant *wpa_s);
 	void (*signal_interface_removed)(struct wpa_supplicant *wpa_s);
 
 	int (*register_interface)(struct wpa_supplicant *wpa_s);