search for: libvirt_dom_memory_peek

Displaying 1 result from an estimated 1 matches for "libvirt_dom_memory_peek".

2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...all nil, then no arguments are passed. More idiomatic would be to have ruby_guestfs_add_drive_opts() take a variable number of parameters and then only require the user to pass in the ones that they are interested in. If you care to look, an example in the ruby-libvirt code is ext/libvirt/domain.c:libvirt_dom_memory_peek() 5) The way that hash lookups are done are a little complicated. For instance, ruby_guestfs_add_drive_opts() uses: VALUE v; v = rb_hash_lookup (optargsv, ID2SYM (rb_intern ("readonly"))); to get at the hash symbol. In ruby-libvirt I tend to do: v = rb_hash_aref(optsargv, rb_s...