[libvirt] [PATCH 2/6] nodedev_udev: Refactor udevGetDeviceType