C program to implement API using  libvirt