3
0
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:
Denis Kenzior 2016-06-01 17:05:56 -05:00
parent 1573bf7d99
commit 833ed20b9a
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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);