Hi all,
Reading libvirt documentation I have found that there is an example
that is pretty broken.
I'm referring to
http://libvirt.org/guide/html/Application_Development_Guide-Guest_Domains...,
example 4.6.
I attach a patch (untested) that fixes some logic, type and function
signature problems. I kept small problems like 'i' missing definition
for the sake of readiness.
Best regards,
Rafael Fernández López.