提交 61cafffb 编写于 作者: J Ján Tomko

Move udevHasDeviceProperty earlier

上级 0d372687
...@@ -58,6 +58,17 @@ struct _udevPrivate { ...@@ -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, ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册