mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
wiphy: add DeviceRemoved signal implementation
This commit is contained in:
parent
4a4d094d8e
commit
daa0b6768f
11
src/wiphy.c
11
src/wiphy.c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user