mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
wiphy: Expose iwd_device_get_path
This commit is contained in:
parent
2d6a50bb27
commit
2d6babc3f8
@ -71,7 +71,7 @@ static void do_debug(const char *str, void *user_data)
|
|||||||
l_info("%s%s", prefix, str);
|
l_info("%s%s", prefix, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *device_get_path(struct netdev *netdev)
|
const char *iwd_device_get_path(struct netdev *netdev)
|
||||||
{
|
{
|
||||||
static char path[256];
|
static char path[256];
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ static void device_emit_added(struct netdev *netdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
l_dbus_message_builder_append_basic(builder, 'o',
|
l_dbus_message_builder_append_basic(builder, 'o',
|
||||||
device_get_path(netdev));
|
iwd_device_get_path(netdev));
|
||||||
__iwd_device_append_properties(netdev, builder);
|
__iwd_device_append_properties(netdev, builder);
|
||||||
|
|
||||||
l_dbus_message_builder_finalize(builder);
|
l_dbus_message_builder_finalize(builder);
|
||||||
@ -151,7 +151,7 @@ static void device_emit_removed(struct netdev *netdev)
|
|||||||
if (!signal)
|
if (!signal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
l_dbus_message_set_arguments(signal, "o", device_get_path(netdev));
|
l_dbus_message_set_arguments(signal, "o", iwd_device_get_path(netdev));
|
||||||
l_dbus_send(dbus, signal);
|
l_dbus_send(dbus, signal);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,7 +223,7 @@ static void netdev_free(void *data)
|
|||||||
struct l_dbus *dbus;
|
struct l_dbus *dbus;
|
||||||
|
|
||||||
dbus = dbus_get_bus();
|
dbus = dbus_get_bus();
|
||||||
l_dbus_unregister_interface(dbus, device_get_path(netdev),
|
l_dbus_unregister_interface(dbus, iwd_device_get_path(netdev),
|
||||||
IWD_DEVICE_INTERFACE);
|
IWD_DEVICE_INTERFACE);
|
||||||
|
|
||||||
device_emit_removed(netdev);
|
device_emit_removed(netdev);
|
||||||
|
@ -37,3 +37,4 @@ void wiphy_set_ssid(const char *ssid);
|
|||||||
bool __iwd_device_append_properties(struct netdev *netdev,
|
bool __iwd_device_append_properties(struct netdev *netdev,
|
||||||
struct l_dbus_message_builder *builder);
|
struct l_dbus_message_builder *builder);
|
||||||
void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data);
|
void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data);
|
||||||
|
const char *iwd_device_get_path(struct netdev *netdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user