device: add nm_device_get_s390_subchannels() accessor

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

View file

@ -4952,6 +4952,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

@ -450,6 +450,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);