<div dir="ltr">Thanks for the replies guys, libvirt-glib sure sounds interesting. On the other hand I was able to leave libvirt.so alone and write my own wrapper (based on libvirt/examples) for easy calls from NodeJS. I can get to list VMs, their config etc. from node but not able to list the operating system running on the VM (ubuntu, win7, etc.). I can get the os_type though (hvm in my case) but that does not tell me whether it is running a windows or a linux distro.<div>

<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 5:00 AM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<div class=""><br>
On Fri, Feb 21, 2014 at 07:30:08AM -0800, Vikhyath Reddy wrote:<br>
> Thanks for the reply Cedric,<br>
><br>
> wrappers is a dir that I made similar to examples which wraps the libvirt<br>
> c code. The reason why I am doing this is to simplify the usage of<br>
> virConnectOpenAuth - it's arguments and callbacks from JavaScript. Using<br>
> ffi, I am unable to create the right callbacks and have it pass the<br>
> correct arguments.<br>
<br>
</div>Depending on what parts of libvirt API you need to use from javascript,<br>
libvirt-glib may be an option as it already makes some parts of libvirt API<br>
accessible from javascript, see<br>
<a href="http://libvirt.org/git/?p=libvirt-glib.git;a=blob;f=examples/conn-test.js;h=7f9784b8fc55a2be6c7596cfd365d4273d057a2e;hb=HEAD" target="_blank">http://libvirt.org/git/?p=libvirt-glib.git;a=blob;f=examples/conn-test.js;h=7f9784b8fc55a2be6c7596cfd365d4273d057a2e;hb=HEAD</a><br>


for example. I don't know if this would be usable from nodejs?<br>
If this is a good fit for what you need, patches extending the libvirt API<br>
wrapped by libvirt-glib are very welcome ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
Christophe<br>
</font></span></blockquote></div><br></div>