3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 01:02:35 +01:00

wiphy: add DeviceRemoved signal implementation

This commit is contained in:
Denis Kenzior 2014-10-23 15:11:01 -05:00
parent 4a4d094d8e
commit daa0b6768f

View File

@ -86,7 +86,18 @@ static void device_emit_added(struct netdev *netdev)
static void device_emit_removed(struct netdev *netdev)
{
struct l_dbus *dbus = dbus_get_bus();
struct l_dbus_message *signal;
signal = l_dbus_message_new_signal(dbus, IWD_MANAGER_PATH,
IWD_MANAGER_INTERFACE,
"DeviceRemoved");
if (!signal)
return;
l_dbus_message_set_arguments(signal, "o", device_get_path(netdev));
l_dbus_send(dbus, signal);
}
static struct l_dbus_message *device_set_property(struct l_dbus *dbus,