[libvirt] [PATCH 1/2] Allow different types of callbacks (just as the C API).