diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2020-06-18 09:46:55 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-06-25 11:03:23 +0200 |
commit | 3124a05d8328629a6a1ea49802cad26254d70690 (patch) | |
tree | 6810e8d3e4cdc9f0ad09a5b4de816e4237875e81 | |
parent | 4efd4e0a6130a556be236f8bc69b42c26cb4987c (diff) | |
download | NetworkManager-3124a05d8328629a6a1ea49802cad26254d70690.tar.gz |
libnm: omit nm_device_*_get_hw_address() from introspection outputbg/introspection-get-hw-addr
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
-rw-r--r-- | libnm/nm-device-6lowpan.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-bond.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-bridge.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-bt.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-dummy.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-ethernet.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-generic.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-infiniband.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-macsec.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-macvlan.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-olpc-mesh.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-team.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-tun.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-vlan.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-vxlan.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-wifi-p2p.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-wifi.c | 2 | ||||
-rw-r--r-- | libnm/nm-device-wpan.c | 2 |
18 files changed, 18 insertions, 18 deletions
diff --git a/libnm/nm-device-6lowpan.c b/libnm/nm-device-6lowpan.c index 0b428c2d8b..b4f378496c 100644 --- a/libnm/nm-device-6lowpan.c +++ b/libnm/nm-device-6lowpan.c @@ -51,7 +51,7 @@ nm_device_6lowpan_get_parent (NMDevice6Lowpan *device) } /** - * nm_device_6lowpan_get_hw_address: + * nm_device_6lowpan_get_hw_address: (skip) * @device: a #NMDevice6Lowpan * * Gets the hardware (MAC) address of the #NMDevice6Lowpan 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 diff --git a/libnm/nm-device-bridge.c b/libnm/nm-device-bridge.c index 977db1464e..9552c2df84 100644 --- a/libnm/nm-device-bridge.c +++ b/libnm/nm-device-bridge.c @@ -41,7 +41,7 @@ G_DEFINE_TYPE (NMDeviceBridge, nm_device_bridge, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_bridge_get_hw_address: + * nm_device_bridge_get_hw_address: (skip) * @device: a #NMDeviceBridge * * Gets the hardware (MAC) address of the #NMDeviceBridge diff --git a/libnm/nm-device-bt.c b/libnm/nm-device-bt.c index 8df952655b..e8dc02ffa0 100644 --- a/libnm/nm-device-bt.c +++ b/libnm/nm-device-bt.c @@ -42,7 +42,7 @@ G_DEFINE_TYPE (NMDeviceBt, nm_device_bt, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_bt_get_hw_address: + * nm_device_bt_get_hw_address: (skip) * @device: a #NMDeviceBt * * Gets the hardware (MAC) address of the #NMDeviceBt diff --git a/libnm/nm-device-dummy.c b/libnm/nm-device-dummy.c index 3bf8e09f4a..4b62fbf0ac 100644 --- a/libnm/nm-device-dummy.c +++ b/libnm/nm-device-dummy.c @@ -28,7 +28,7 @@ G_DEFINE_TYPE (NMDeviceDummy, nm_device_dummy, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_dummy_get_hw_address: + * nm_device_dummy_get_hw_address: (skip) * @device: a #NMDeviceDummy * * Gets the hardware (MAC) address of the #NMDeviceDummy diff --git a/libnm/nm-device-ethernet.c b/libnm/nm-device-ethernet.c index 944f7b8139..7152784af7 100644 --- a/libnm/nm-device-ethernet.c +++ b/libnm/nm-device-ethernet.c @@ -46,7 +46,7 @@ G_DEFINE_TYPE (NMDeviceEthernet, nm_device_ethernet, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_ethernet_get_hw_address: + * nm_device_ethernet_get_hw_address: (skip) * @device: a #NMDeviceEthernet * * Gets the active hardware (MAC) address of the #NMDeviceEthernet diff --git a/libnm/nm-device-generic.c b/libnm/nm-device-generic.c index 3751cb5147..2b9c96a8f2 100644 --- a/libnm/nm-device-generic.c +++ b/libnm/nm-device-generic.c @@ -37,7 +37,7 @@ G_DEFINE_TYPE (NMDeviceGeneric, nm_device_generic, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_generic_get_hw_address: + * nm_device_generic_get_hw_address: (skip) * @device: a #NMDeviceGeneric * * Gets the hardware address of the #NMDeviceGeneric diff --git a/libnm/nm-device-infiniband.c b/libnm/nm-device-infiniband.c index ad47c2ed4c..194bb1993f 100644 --- a/libnm/nm-device-infiniband.c +++ b/libnm/nm-device-infiniband.c @@ -38,7 +38,7 @@ G_DEFINE_TYPE (NMDeviceInfiniband, nm_device_infiniband, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_infiniband_get_hw_address: + * nm_device_infiniband_get_hw_address: (skip) * @device: a #NMDeviceInfiniband * * Gets the hardware (MAC) address of the #NMDeviceInfiniband diff --git a/libnm/nm-device-macsec.c b/libnm/nm-device-macsec.c index d8352f9c09..1396cb6650 100644 --- a/libnm/nm-device-macsec.c +++ b/libnm/nm-device-macsec.c @@ -77,7 +77,7 @@ nm_device_macsec_get_parent (NMDeviceMacsec *device) } /** - * nm_device_macsec_get_hw_address: + * nm_device_macsec_get_hw_address: (skip) * @device: a #NMDeviceMacsec * * Gets the hardware (MAC) address of the #NMDeviceMacsec diff --git a/libnm/nm-device-macvlan.c b/libnm/nm-device-macvlan.c index 83dc0e25b8..3b3ce115c9 100644 --- a/libnm/nm-device-macvlan.c +++ b/libnm/nm-device-macvlan.c @@ -116,7 +116,7 @@ nm_device_macvlan_get_tap (NMDeviceMacvlan *device) } /** - * nm_device_macvlan_get_hw_address: + * nm_device_macvlan_get_hw_address: (skip) * @device: a #NMDeviceMacvlan * * Gets the hardware (MAC) address of the #NMDeviceMacvlan diff --git a/libnm/nm-device-olpc-mesh.c b/libnm/nm-device-olpc-mesh.c index d6fa03f19e..ebdce2a8d4 100644 --- a/libnm/nm-device-olpc-mesh.c +++ b/libnm/nm-device-olpc-mesh.c @@ -40,7 +40,7 @@ G_DEFINE_TYPE (NMDeviceOlpcMesh, nm_device_olpc_mesh, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_olpc_mesh_get_hw_address: + * nm_device_olpc_mesh_get_hw_address: (skip) * @device: a #NMDeviceOlpcMesh * * Gets the hardware (MAC) address of the #NMDeviceOlpcMesh diff --git a/libnm/nm-device-team.c b/libnm/nm-device-team.c index 5e97a7df83..08588665e2 100644 --- a/libnm/nm-device-team.c +++ b/libnm/nm-device-team.c @@ -43,7 +43,7 @@ G_DEFINE_TYPE (NMDeviceTeam, nm_device_team, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_team_get_hw_address: + * nm_device_team_get_hw_address: (skip) * @device: a #NMDeviceTeam * * Gets the hardware (MAC) address of the #NMDeviceTeam diff --git a/libnm/nm-device-tun.c b/libnm/nm-device-tun.c index 26e4a318ad..e7ea07faff 100644 --- a/libnm/nm-device-tun.c +++ b/libnm/nm-device-tun.c @@ -50,7 +50,7 @@ G_DEFINE_TYPE (NMDeviceTun, nm_device_tun, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_tun_get_hw_address: + * nm_device_tun_get_hw_address: (skip) * @device: a #NMDeviceTun * * Gets the hardware (MAC) address of the #NMDeviceTun diff --git a/libnm/nm-device-vlan.c b/libnm/nm-device-vlan.c index fdc2193696..5debf789b8 100644 --- a/libnm/nm-device-vlan.c +++ b/libnm/nm-device-vlan.c @@ -43,7 +43,7 @@ G_DEFINE_TYPE (NMDeviceVlan, nm_device_vlan, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_vlan_get_hw_address: + * nm_device_vlan_get_hw_address: (skip) * @device: a #NMDeviceVlan * * Gets the hardware (MAC) address of the #NMDeviceVlan diff --git a/libnm/nm-device-vxlan.c b/libnm/nm-device-vxlan.c index c048a980ce..9c8e4fc9ff 100644 --- a/libnm/nm-device-vxlan.c +++ b/libnm/nm-device-vxlan.c @@ -69,7 +69,7 @@ G_DEFINE_TYPE (NMDeviceVxlan, nm_device_vxlan, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_vxlan_get_hw_address: + * nm_device_vxlan_get_hw_address: (skip) * @device: a #NMDeviceVxlan * * Gets the hardware (MAC) address of the #NMDeviceVxlan diff --git a/libnm/nm-device-wifi-p2p.c b/libnm/nm-device-wifi-p2p.c index 972983d16e..9927ee874b 100644 --- a/libnm/nm-device-wifi-p2p.c +++ b/libnm/nm-device-wifi-p2p.c @@ -51,7 +51,7 @@ G_DEFINE_TYPE (NMDeviceWifiP2P, nm_device_wifi_p2p, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_wifi_p2p_get_hw_address: + * nm_device_wifi_p2p_get_hw_address: (skip) * @device: a #NMDeviceWifiP2P * * Gets the actual hardware (MAC) address of the #NMDeviceWifiP2P diff --git a/libnm/nm-device-wifi.c b/libnm/nm-device-wifi.c index 5c12b67620..5d7feca312 100644 --- a/libnm/nm-device-wifi.c +++ b/libnm/nm-device-wifi.c @@ -65,7 +65,7 @@ G_DEFINE_TYPE (NMDeviceWifi, nm_device_wifi, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_wifi_get_hw_address: + * nm_device_wifi_get_hw_address: (skip) * @device: a #NMDeviceWifi * * Gets the actual hardware (MAC) address of the #NMDeviceWifi diff --git a/libnm/nm-device-wpan.c b/libnm/nm-device-wpan.c index 9cbf4ae042..8a52e031e8 100644 --- a/libnm/nm-device-wpan.c +++ b/libnm/nm-device-wpan.c @@ -25,7 +25,7 @@ G_DEFINE_TYPE (NMDeviceWpan, nm_device_wpan, NM_TYPE_DEVICE) /*****************************************************************************/ /** - * nm_device_wpan_get_hw_address: + * nm_device_wpan_get_hw_address: (skip) * @device: a #NMDeviceWpan * * Gets the active hardware (MAC) address of the #NMDeviceWpan |