diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-12-16 16:30:59 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-12-20 11:37:54 +0100 |
commit | 567cfa41f4b0524031f0cdca0455c39f8c3c5c69 (patch) | |
tree | e4c6ae8f5c5b8ba18bbb085b75f6f9f0c6257392 /libnm-glib/nm-device-vlan.c | |
parent | f889440b96c254fb9bdd7aea82f628acfad792ee (diff) | |
download | NetworkManager-567cfa41f4b0524031f0cdca0455c39f8c3c5c69.tar.gz |
libnm-glib: add nm_device_get_hw_address() to NMDevice
It simplifies code getting MAC addresses for clients.
Diffstat (limited to 'libnm-glib/nm-device-vlan.c')
-rw-r--r-- | libnm-glib/nm-device-vlan.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libnm-glib/nm-device-vlan.c b/libnm-glib/nm-device-vlan.c index 19342b93ea..807b306602 100644 --- a/libnm-glib/nm-device-vlan.c +++ b/libnm-glib/nm-device-vlan.c @@ -210,6 +210,12 @@ connection_compatible (NMDevice *device, NMConnection *connection, GError **erro return NM_DEVICE_CLASS (nm_device_vlan_parent_class)->connection_compatible (device, connection, error); } +static const char * +get_hw_address (NMDevice *device) +{ + return nm_device_vlan_get_hw_address (NM_DEVICE_VLAN (device)); +} + /***********************************************************/ static void @@ -305,6 +311,7 @@ nm_device_vlan_class_init (NMDeviceVlanClass *eth_class) object_class->finalize = finalize; object_class->get_property = get_property; device_class->connection_compatible = connection_compatible; + device_class->get_hw_address = get_hw_address; /* properties */ |