Displaying 1 result from an estimated 1 matches for "remotefilenamev".
Did you mean:
remotefilename
2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...ibvirt I tend to do:
v = rb_hash_aref(optsargv, rb_str_new2("readonly"));
That being said, your way may actually be faster since you aren't allocating
a new object. Minor in any case, they both work.
6) In ruby_guestfs_download() and elsewhere, there is code like:
Check_Type (remotefilenamev, T_STRING);
const char *remotefilename = StringValueCStr (remotefilenamev);
if (!remotefilename)
rb_raise (rb_eTypeError, "expected string for parameter %s of %s",
"remotefilename", "download");
First, the Check_Type isn't strictly necessary;...