[Libvir] [PATCH]: Add virNodeGetInfo to ruby bindings

Chris Lalancette clalance at redhat.com
Mon Nov 19 21:18:44 UTC 2007

     Attached is a patch to add the virNodeGetInfo() call to the Libvirt Ruby
bindings.  Although it is not technically a virConn* function, it acts like one
since it uses the virConnectPtr structure, so I put it with those functions.
Let me know if I am doing anything completely crazy in here; this is my first
stab at Ruby binding code.

It works like so:

require 'libvirt'

conn = Libvirt::open("qemu:///system")
ni = c.nodeGetInfo
print ni

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-ruby-virNodeGetInfo.patch
Type: text/x-patch
Size: 2880 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071119/19ec4da2/attachment-0001.bin>

More information about the libvir-list mailing list