mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Move udevHasDeviceProperty earlier
This commit is contained in:
parent
0d372687eb
commit
61cafffb2f
@ -58,6 +58,17 @@ struct _udevPrivate {
|
||||
};
|
||||
|
||||
|
||||
static bool
|
||||
udevHasDeviceProperty(struct udev_device *dev,
|
||||
const char *key)
|
||||
{
|
||||
if (udev_device_get_property_value(dev, key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
static const char *udevGetDeviceProperty(struct udev_device *udev_device,
|
||||
const char *property_key)
|
||||
{
|
||||
@ -1084,16 +1095,6 @@ udevProcessSCSIGeneric(struct udev_device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool
|
||||
udevHasDeviceProperty(struct udev_device *dev,
|
||||
const char *key)
|
||||
{
|
||||
if (udev_device_get_property_value(dev, key))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static int
|
||||
udevGetDeviceType(struct udev_device *device,
|
||||
virNodeDevCapType *type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user