Actually, there is example code right in the libvirt source tree. In
Richard W.M. Jones wrote:
> On Sun, Mar 09, 2008 at 10:52:33PM +0530, Ajishrao.r wrote:
>> I am using libvirt to manage, The Hypervisor, Can Any one Help me
>> about handling error? My main questions are.
>> --- What is Library level Error Handling?
>> --- Any Example to use
>> void virSetErrorFunc (void * userData,virErrorFunc
> I'm not aware of any example code which uses this.