1
0
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:
Ján Tomko 2016-06-03 16:36:35 +02:00
parent 0d372687eb
commit 61cafffb2f

View File

@ -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, static const char *udevGetDeviceProperty(struct udev_device *udev_device,
const char *property_key) const char *property_key)
{ {
@ -1084,16 +1095,6 @@ udevProcessSCSIGeneric(struct udev_device *dev,
return 0; 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 static int
udevGetDeviceType(struct udev_device *device, udevGetDeviceType(struct udev_device *device,
virNodeDevCapType *type) virNodeDevCapType *type)