[Libguestfs] example script for GObject

Hilko Bengen bengen at hilluzination.de
Tue Jan 24 23:02:41 UTC 2012


I tried using Javascript (gjs) with GObject-Introspection and did a port
of the create_disk example which is attached below.

Quite a bit of time was spent looking up stuff in the GLib reference and
guessing how certain idioms translate to gjs.

I used the traditional add_drive_opts method since I haven't been able
to find how to specify the optional arguments to add_drive_opts. How
does that work?

Cheers,
-Hilko

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120125/1cb60238/attachment.ksh>


More information about the Libguestfs mailing list