mirror of https://gitee.com/openkylin/libvirt.git
Move udevHasDeviceProperty earlier
This commit is contained in:
parent
0d372687eb
commit
61cafffb2f
src/node_device
|
@ -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…
Reference in New Issue