search for: adddriveopts

Displaying 3 results from an estimated 3 matches for "adddriveopts".

Did you mean: add_drive_opts
2012 Jan 24
1
example script for GObject
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
2012 Jan 20
0
CamelName patch
...416129 > Author: Matthew Booth<mbooth at redhat.com> > Date: Fri Jan 13 10:00:30 2012 +0000 > > generator: Add CamelName flag > > We can make a good guess at camel case names for most APIs. For example, > add_drive_opts can be automatically transformed to AddDriveOpts. However, ot > apis don't produce a satisfactory name when transformed automatically. For > example, we would want md_create to produce MDCreate rather than MdCreate. > > This change adds a CamelName flag which allows a camel case name to be speci > explicitly...
2012 Jan 17
3
GObject bindings
...nch of basic manual tests work as expected. I'm in the process of adding more comprehensive tests. Here's an example simple javascript program which uses these bindings: === const Guestfs = imports.gi.Guestfs; print('Starting'); var g = new Guestfs.Session(); var o = new Guestfs.AddDriveOpts({format: 'raw', iface: 'virtio'}); g.add_drive_opts('tests/guests/fedora.img', null); g.launch(); r = g.inspect_os(); m = g.inspect_get_mountpoints(r[0]); print(m['/boot']); print('Finished'); === Run this file as ./run gjs gobject-test.js