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 067a3d6c08
('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 3124a05d83)
This commit is contained in:
Beniamino Galvani 2020-06-18 09:46:55 +02:00
parent 13eb192966
commit a1de36d917
18 changed files with 18 additions and 18 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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