device: add nm_device_get_s390_subchannels() accessor

This commit is contained in:
Thomas Haller 2023-06-12 12:23:11 +02:00
parent c47d6b17d5
commit dbb45f14d3
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 13 additions and 0 deletions

View file

@ -5115,6 +5115,18 @@ nm_device_get_ip_iface_identifier(NMDevice *self,
return NM_DEVICE_GET_CLASS(self)->get_ip_iface_identifier(self, iid);
}
const char *
nm_device_get_s390_subchannels(NMDevice *self)
{
NMDeviceClass *klass;
g_return_val_if_fail(NM_IS_DEVICE(self), NULL);
klass = NM_DEVICE_GET_CLASS(self);
return klass->get_s390_subchannels ? klass->get_s390_subchannels(self) : NULL;
}
const char *
nm_device_get_driver(NMDevice *self)
{

View file

@ -460,6 +460,7 @@ gboolean nm_device_is_real(NMDevice *dev);
const char *nm_device_get_ip_iface(NMDevice *dev);
const char *nm_device_get_ip_iface_from_platform(NMDevice *dev);
int nm_device_get_ip_ifindex(const NMDevice *dev);
const char *nm_device_get_s390_subchannels(NMDevice *self);
const char *nm_device_get_driver(NMDevice *dev);
const char *nm_device_get_driver_version(NMDevice *dev);
const char *nm_device_get_type_desc(NMDevice *dev);