mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-12 19:32:36 +01:00
wiphy: Add __iwd_device_append_properties
This commit is contained in:
parent
1ff34e3f0f
commit
9ba3cc408e
12
src/wiphy.c
12
src/wiphy.c
@ -79,6 +79,18 @@ static const char *device_get_path(struct netdev *netdev)
|
||||
return path;
|
||||
}
|
||||
|
||||
bool __iwd_device_append_properties(struct netdev *netdev,
|
||||
struct l_dbus_message_builder *builder)
|
||||
{
|
||||
l_dbus_message_builder_enter_array(builder, "{sv}");
|
||||
|
||||
dbus_dict_append_string(builder, "Name", netdev->name);
|
||||
|
||||
l_dbus_message_builder_leave_array(builder);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void device_emit_added(struct netdev *netdev)
|
||||
{
|
||||
struct l_dbus *dbus = dbus_get_bus();
|
||||
|
@ -23,9 +23,14 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct netdev;
|
||||
|
||||
bool wiphy_init(void);
|
||||
bool wiphy_exit(void);
|
||||
|
||||
void wiphy_notify_dellink(uint32_t index);
|
||||
|
||||
void wiphy_set_ssid(const char *ssid);
|
||||
|
||||
bool __iwd_device_append_properties(struct netdev *netdev,
|
||||
struct l_dbus_message_builder *builder);
|
||||
|
Loading…
Reference in New Issue
Block a user