mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:49:43 +01:00
netdev: Add netdev_get_name
This commit is contained in:
parent
1573bf7d99
commit
833ed20b9a
@ -133,6 +133,11 @@ uint32_t netdev_get_iftype(struct netdev *netdev)
|
||||
return netdev->type;
|
||||
}
|
||||
|
||||
const char *netdev_get_name(struct netdev *netdev)
|
||||
{
|
||||
return netdev->name;
|
||||
}
|
||||
|
||||
static void netdev_free(void *data)
|
||||
{
|
||||
struct netdev *netdev = data;
|
||||
|
@ -33,6 +33,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
||||
const uint8_t *netdev_get_address(struct netdev *netdev);
|
||||
uint32_t netdev_get_ifindex(struct netdev *netdev);
|
||||
uint32_t netdev_get_iftype(struct netdev *netdev);
|
||||
const char *netdev_get_name(struct netdev *netdev);
|
||||
|
||||
struct netdev *netdev_find(int ifindex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user