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-infiniband.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-infiniband.c')
-rw-r--r-- | libnm-glib/nm-device-infiniband.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libnm-glib/nm-device-infiniband.c b/libnm-glib/nm-device-infiniband.c index 070b8f8c63..0254dbf5c8 100644 --- a/libnm-glib/nm-device-infiniband.c +++ b/libnm-glib/nm-device-infiniband.c @@ -181,6 +181,12 @@ connection_compatible (NMDevice *device, NMConnection *connection, GError **erro return NM_DEVICE_CLASS (nm_device_infiniband_parent_class)->connection_compatible (device, connection, error); } +static const char * +get_hw_address (NMDevice *device) +{ + return nm_device_infiniband_get_hw_address (NM_DEVICE_INFINIBAND (device)); +} + /***********************************************************/ static void @@ -272,6 +278,7 @@ nm_device_infiniband_class_init (NMDeviceInfinibandClass *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 */ |