Updated with Dan's suggested code changes.
This declares the function to use void* instead of virDomainPtr,
bypassing the question of whether and what <libvirt.h> might define.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top