summaryrefslogtreecommitdiff
path: root/libnm/nm-device-bond.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2020-06-18 09:46:55 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2020-06-25 11:05:11 +0200
commita1de36d917cd235b3e41351d7248f9f6762846eb (patch)
treeea765ad209abdd05fafa1c0ff8227c3528506643 /libnm/nm-device-bond.c
parent13eb1929667b07c2681e9fcbca1bcd87bfd2cb3a (diff)
downloadNetworkManager-a1de36d917cd235b3e41351d7248f9f6762846eb.tar.gz
libnm: omit nm_device_*_get_hw_address() from introspection output
When the get_hw_address() method is called on a device object through GObject-introspection, the device-specific (e.g. nm_device_ethernet_get_hw_address()) C function is called instead of the more generic nm_device_get_hw_address(). Those device-specific functions were deprecated in commit 067a3d6c0861 ('nm-device: expose via D-Bus the 'hw-address' property') and so libnm will print out deprecation warnings like: DeprecationWarning: NM.DeviceEthernet.get_hw_address is deprecated Omit the device-specific function from the introspection output so that the generic function will be called instead. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/544 (cherry picked from commit 3124a05d8328629a6a1ea49802cad26254d70690)
Diffstat (limited to 'libnm/nm-device-bond.c')
-rw-r--r--libnm/nm-device-bond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-device-bond.c b/libnm/nm-device-bond.c
index cb236af931..ebc438a957 100644
--- a/libnm/nm-device-bond.c
+++ b/libnm/nm-device-bond.c
@@ -42,7 +42,7 @@ G_DEFINE_TYPE (NMDeviceBond, nm_device_bond, NM_TYPE_DEVICE)
/*****************************************************************************/
/**
- * nm_device_bond_get_hw_address:
+ * nm_device_bond_get_hw_address: (skip)
* @device: a #NMDeviceBond
*
* Gets the hardware (MAC) address of the #NMDeviceBond