summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* java: Tidy up the generated C bindings file.Richard W.M. Jones2011-07-191-3/+11
|
* java: Fix optional arguments in calls.Richard W.M. Jones2011-07-191-12/+82
| | | | This also adds tests.
* java: Enable warnings when compiling C bindings code.Richard W.M. Jones2011-07-191-15/+27
| | | | And fix the code so it doesn't generate warnings.
* ocaml: Generate ocamldoc.Richard W.M. Jones2011-07-171-15/+45
| | | | Also includes improvements to the OCaml documentation.
* ocaml: Bind guestfs_last_errno.Richard W.M. Jones2011-07-161-0/+13
|
* docs: Separate out combined =item 's in man pages.Richard W.M. Jones2011-07-161-3/+9
| | | | | | | | | | | | | | | Turn: =item B<-a> | B<--all> into: =item B<-a> =item B<--all> This gives a more natural-looking manual page, as well as making it easier to directly link to these sections.
* ruby: Add binding for guestfs_user_cancel.Richard W.M. Jones2011-07-151-0/+22
|
* perl: Add binding for guestfs_user_cancel.Richard W.M. Jones2011-07-151-0/+11
|
* ocaml: Add binding for guestfs_user_cancel.Richard W.M. Jones2011-07-151-0/+8
|
* Add user cancellation to the C API.Richard W.M. Jones2011-07-151-0/+5
| | | | | | | | | This allows long transfers (FileIn and FileOut operations) to be cancelled by calling the signal and thread safe guestfs_user_cancel function. Most of this commit consists of a multithreaded program that tests user cancellation of uploads and downloads.
* New APIs: set-pgroup, get-pgroupRichard W.M. Jones2011-07-151-0/+19
| | | | | | | | | | | If the pgroup flag is set in the handle, then the qemu and recovery subprocesses are placed in separate process groups. The default is false. The purpose for setting up a process group is that ^C will not be passed from the main process down to these processes (killing them). This allows ^C and other keyboard events to be caught and handled in the main process.
* guestfs.h: Add missing extern keyword before event functions.Richard W.M. Jones2011-07-151-6/+6
|
* New API: write-appendRichard W.M. Jones2011-07-141-1/+17
| | | | Append content to the end of a file.
* New API: btrfs-filesystem-resize (RHBZ#721160).Richard W.M. Jones2011-07-141-0/+23
| | | | This resizes a btrfs filesystem.
* New API: ntfsresize-opts (RHBZ#685009).Richard W.M. Jones2011-07-121-2/+34
| | | | | | This is a more comprehensive fix for RHBZ#685009. Add a new API which allows the --force flag to be passed, allowing multiple NTFS resize operations in a single session.
* Document that ntfsresize cannot be used multiple times (RHBZ#685009).Richard W.M. Jones2011-07-121-0/+9
|
* New API: list-dm-devices (RHBZ#688062).Richard W.M. Jones2011-07-121-1/+17
| | | | List device mapper devices.
* Don't mention /dev/mapper in docs for vg-activate{,-all} commands.Richard W.M. Jones2011-07-121-6/+0
| | | | | | | Although vg-activate and vg-activate-all do make /dev/mapper/VG-LV devices internally, we always prefer to use the /dev/VG/LV format and we return this format where possible. Therefore don't mention /dev/mapper in this documentation.
* protocol: Force optargs_bitmask to be passed as 0 for non-opt actions.Richard W.M. Jones2011-07-121-2/+13
| | | | | | If the action doesn't take optional arguments, nevertheless force the optargs_bitmask field in the header to be passed as 0, and give an error if not.
* mkfs-opts: Don't test optional arguments in this test.Richard W.M. Jones2011-07-061-1/+1
|
* mkfs-opts: Add optional sectorsize parameter.Nikita A Menkovich2011-07-061-2/+7
|
* capitests: Allow tests to properly test optional arguments.Richard W.M. Jones2011-07-061-13/+31
| | | | | | For optional arguments, you can now specify empty string to mean no argument, except for String optional arguments where you must use "NOARG" (empty string meaning a supplied empty string argument).
* Implement inode option to mkfs_opts command.Nikita A Menkovich2011-07-041-2/+7
| | | | | | | This is needed because older versions of grub(for example in centos) do not understand filesystems created with newer version of e2fsprogs. By default in e2fsprogs 1.4+ creates partitions with 256 bit inode size, and grub expect 128 bit size.
* python: Add explicit g.close() method (RHBZ#717786).Richard W.M. Jones2011-06-301-0/+26
|
* fish: Add 'display' command for displaying graphical files.Richard W.M. Jones2011-06-281-0/+14
|
* New API: inspect-get-icon returns the guest icon.Richard W.M. Jones2011-06-281-0/+64
| | | | | | | | | | This API returns the guest's favicon if found, else an icon representing the guest operating system. Currently supported by this patch: Fedora, RHEL and derivatives, Debian (but not Ubuntu), Windows XP, Windows 7. This also updates virt-inspector to include an <icon> element containing the icon in base64 encoding.
* generator: Fix functions with both RBufferOut and optional args.Richard W.M. Jones2011-06-282-10/+14
| | | | | | | | | | No current function returns RBufferOut and has optional args. Such functions would be generated incorrectly. RBufferOut implies a silent "size_t *size_r" argument is added after the regular arguments and before the optional arguments. Various changes to the code generator need to be made to take this into account.
* inspection: Remove note about root device string.Richard W.M. Jones2011-06-281-60/+0
| | | | | | | This is a fairly pointless note/warning since (a) you can't use the API if you don't pass a root device string and (b) the code gives you a good error message if you pass something that is not a root device string.
* guestfs.h: Tidy up *_argv structs and other #defines.Richard W.M. Jones2011-06-281-6/+18
|
* New API: mount-9p lets you mount 9p filesystems (RHBZ#714981).Richard W.M. Jones2011-06-221-0/+11
| | | | The updated patch makes 'options' into an optional parameter.
* New API: list-9p lists 9p filesystem mount tags (RHBZ#714981).Richard W.M. Jones2011-06-221-0/+7
|
* trace: Print empty list correctly.Richard W.M. Jones2011-06-221-3/+5
| | | | | | | Empty lists returned by RStringList and RHashtable functions were incorrectly printed as [""]. Fix this so they are printed as [] instead.
* Enable deprecated option only with gcc >= 4.5.Richard W.M. Jones2011-06-201-1/+1
| | | | | | | Before gcc 4.5, the deprecated option did not take the optional string argument (see [1]). This caused compilation to fail with gcc < 4.5. [1] http://gcc.gnu.org/gcc-4.5/changes.html
* generator: Rewrite UUIDs that begin with zero byte.Richard W.M. Jones2011-06-131-0/+8
| | | | | | | In util-linux <= 2.19, mkswap -U cannot handle the first byte of the UUID being zero, so we artificially rewrite such UUIDs. See: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/4273
* zero: Disable file test because of bug in file command.Richard W.M. Jones2011-05-181-3/+2
| | | | See: https://bugzilla.redhat.com/show_bug.cgi?id=705499
* New APIs: is-zero and is-zero-device, to test if file or device is all zeroes.Richard W.M. Jones2011-05-171-2/+26
|
* Document that guestfs_file output depends on file(1) command.Richard W.M. Jones2011-05-171-9/+6
| | | | | And therefore practically it cannot be part of the ABI since the output of file(1) itself changes from time to time.
* generator: Mark sfdisk functions as deprecated.Richard W.M. Jones2011-05-171-4/+4
| | | | Point to the part-* API calls as replacements.
* generator: Mark mount as deprecated.Richard W.M. Jones2011-05-171-1/+1
| | | | | | | Callers should use 'mount_options' or 'mount_vfs' instead. See also: http://libguestfs.org/guestfs.3.html#libguestfs_gotchas
* generator: Mark wait_ready as deprecated.Richard W.M. Jones2011-05-171-1/+1
| | | | | | The function has been a no op for a very long time. By marking it as deprecated we make it clear that you shouldn't call it in new code.
* generator: Check the flags fields.Richard W.M. Jones2011-05-171-0/+32
|
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+3
|
* lib: Warn about deprecated functions (enable with -DGUESTFS_WARN_DEPRECATED=1).Richard W.M. Jones2011-05-171-10/+31
| | | | | | | | This allows C API users to be warned if they are using any deprecated functions. We don't warn about this by default. Users have to specifically request this by defining the cpp symbol GUESTFS_WARN_DEPRECATED as 1.
* lib: Add GCC version macro to the header file.Richard W.M. Jones2011-05-171-0/+5
| | | | This will be used to internally enable various GCC enhancements.
* lib: Add vertical space between each function in <guestfs.h>.Richard W.M. Jones2011-05-171-0/+2
|
* add-domain: Add allowuuid flag to allow UUIDs to be used for names.Richard W.M. Jones2011-05-061-1/+6
| | | | | | This makes a backwards-compatible change to the add-domain API. If the optional allowuuid flag is true then UUIDs can be used instead of names in the domain name parameter.
* doc: Use I<-...> for cross-references to command line options.Richard W.M. Jones2011-05-011-9/+9
| | | | This is now used consistently across all the documentation.
* python: Implement new event API.Richard W.M. Jones2011-04-222-2/+46
| | | | | This implements set_event_callback and delete_event_callback so that Python programs can use the new event mechanism.
* python: Rearrange C files for bindings.Richard W.M. Jones2011-04-221-80/+1
| | | | | | | Move the hand-written functions into two new files: guestfs-py.h and guestfs-py-byhand.c This is just code motion.
* perl: Decrement refcount in $g->delete_event_callback.Richard W.M. Jones2011-04-221-3/+7
| | | | This updates commit bc468c87d04b34faacd208c49cca4a5096e5103c.