[libvirt] [PATCH] Cast callbacks to the correct type