diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-08 15:20:36 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-08 15:20:36 +0100 |
commit | 15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed (patch) | |
tree | cf462fcc7f390c56be66ba6fb72fbfd79ccbc598 /ruby | |
parent | 77c3f9d0ed25218fc3f24cee083a2083157d8e0a (diff) | |
download | libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.gz libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.xz libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.zip |
Generated code to support last 3 commits.
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/ext/guestfs/_guestfs.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ruby/ext/guestfs/_guestfs.c b/ruby/ext/guestfs/_guestfs.c index 8b87aed0..dd51ca5c 100644 --- a/ruby/ext/guestfs/_guestfs.c +++ b/ruby/ext/guestfs/_guestfs.c @@ -451,6 +451,23 @@ static VALUE ruby_guestfs_set_ready (VALUE gv) return Qnil; } +static VALUE ruby_guestfs_end_busy (VALUE gv) +{ + guestfs_h *g; + Data_Get_Struct (gv, guestfs_h, g); + if (!g) + rb_raise (rb_eArgError, "%s: used handle after closing it", "end_busy"); + + + int r; + + r = guestfs_end_busy (g); + if (r == -1) + rb_raise (e_Error, "%s", guestfs_last_error (g)); + + return Qnil; +} + static VALUE ruby_guestfs_mount (VALUE gv, VALUE devicev, VALUE mountpointv) { guestfs_h *g; @@ -2882,6 +2899,8 @@ void Init__guestfs () ruby_guestfs_set_busy, 0); rb_define_method (c_guestfs, "set_ready", ruby_guestfs_set_ready, 0); + rb_define_method (c_guestfs, "end_busy", + ruby_guestfs_end_busy, 0); rb_define_method (c_guestfs, "mount", ruby_guestfs_mount, 2); rb_define_method (c_guestfs, "sync", |