Module | Guestfs |
In: |
ext/guestfs/_guestfs.c
|
Initialize the module.
EVENT_CLOSE | = | ULL2NUM (UINT64_C (0x1)) |
EVENT_SUBPROCESS_QUIT | = | ULL2NUM (UINT64_C (0x2)) |
EVENT_LAUNCH_DONE | = | ULL2NUM (UINT64_C (0x4)) |
EVENT_PROGRESS | = | ULL2NUM (UINT64_C (0x8)) |
EVENT_APPLIANCE | = | ULL2NUM (UINT64_C (0x10)) |
EVENT_LIBRARY | = | ULL2NUM (UINT64_C (0x20)) |
EVENT_TRACE | = | ULL2NUM (UINT64_C (0x40)) |
EVENT_ENTER | = | ULL2NUM (UINT64_C (0x80)) |
EVENT_LIBVIRT_AUTH | = | ULL2NUM (UINT64_C (0x100)) |
EVENT_ALL | = | ULL2NUM (UINT64_C (0x1ff)) |
For backwards compatibility.
/* For backwards compatibility. */ static VALUE ruby_guestfs_create (int argc, VALUE *argv, VALUE module) { guestfs_h *g; unsigned flags; if (argc > 1) rb_raise (rb_eArgError, "expecting 0 or 1 arguments"); flags = parse_flags (argc, argv); g = guestfs_create_flags (flags); if (!g) rb_raise (e_Error, "failed to create guestfs handle"); /* Don't print error messages to stderr by default. */ guestfs_set_error_handler (g, NULL, NULL); return Data_Wrap_Struct (c_guestfs, NULL, ruby_guestfs_free, g); }