summaryrefslogtreecommitdiffstats
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* java: Add guestfs-java(3) man page.Richard W.M. Jones2011-07-195-0/+318
|
* java: Fix optional arguments in calls.Richard W.M. Jones2011-07-193-2/+66
| | | | This also adds tests.
* java: Enable warnings when compiling C bindings code.Richard W.M. Jones2011-07-191-1/+4
| | | | And fix the code so it doesn't generate warnings.
* java: Add a test of g.list_filesystems (a function that returns a Map).Richard W.M. Jones2011-03-021-0/+10
|
* java: Remove old test file if one was left around.Richard W.M. Jones2011-03-021-0/+4
| | | | | | If a test.img file was left over from a previous run, then it would cause the subsequent test to fail. Therefore remove any old test.img file.
* java: Enable assertions when doing 'make check'.Richard W.M. Jones2011-03-021-2/+2
| | | | | | | | | | | It turns out that Java assertions are disabled by default. You have to add the 'java -ea' flag to the JVM. Who knew ..? Because of this oversight, the tests weren't actually performing the assertions that we wanted (although in fact none of the assertions were failing). This change enables assertions when running the tests.
* Tempora mutantur, nos et mutamur in illis.Richard W.M. Jones2011-01-021-1/+1
|
* java: Combine tests to reduce number of launches.Richard W.M. Jones2010-11-303-48/+5
|
* New API: inspect-list-applications.Richard W.M. Jones2010-11-151-0/+1
| | | | | | | | This converts the current Perl code in virt-inspector for listing applications, into C, making it a part of the core API. This is also capable of fetching the list of Windows applications from the registry.
* Split generator into separate source files.Richard Jones2010-09-111-1/+1
| | | | | | | | | | 'src/generator.ml' is no more. Instead the generator is logically split up over many different source files. Read generator/README for help and tips. We compile the generator down to bytecode, not native code. This means it will run more slowly, but is done for maximum portability.
* Update copyright years.Richard Jones2010-01-021-1/+1
|
* Remove separate inspector_generator.ml, combine this with generator.ml.Richard Jones2009-12-311-1/+2
| | | | | | | | | | | This commit combines the previously separate "inspector_generator.ml" program which generated bindings for virt-inspector. Having two separate programs caused no end of troubles for developers, so we now combine them into a single program. NOTE: OCaml xml-light is now *required* in order to rebuild the generated code.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* Generic partition creation interface.Richard Jones2009-11-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a generic partition creation interface which should be future-proof and extensible, and partially replaces the old sfdisk-based interface. The implementation is based on parted but is hopefully not too dependent on the particulars of parted. The following new calls are introduced: guestfs_part_init: Initialize a disk with a partition table. Unlike the sfdisk- based interface, we also support GPT and other partition types, which is essential to scale to devices larger than 2TB. guestfs_part_add: Add a partition to an existing disk. guestfs_part_disk: Convenience function which combines part_init & part_add, creating a single partition that covers the whole disk. guestfs_part_set_bootable: guestfs_part_set_name: Set various aspects of existing partitions. guestfs_part_list: List partitions on a device. This returns a programming-friendly list of partition structs (in contrast to sfdisk-l which cannot be parsed). guestfs_part_get_parttype: Return the partition table type, eg. "msdos" or "gpt". The following calls are planned, but not added currently: guestfs_part_get_bootable guestfs_part_get_name guestfs_part_set_type guestfs_part_get_type
* Remove guestfs_wait_ready (turn it into a no-op).Richard Jones2009-09-212-2/+0
| | | | | | | | | | | | | | This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
* Tidy up generation of java/Makefile.inc.Richard Jones2009-08-071-1/+32
| | | | | (Just whitespace and comment changes, and small restructuring of the code).
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-034-55/+55
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Add interface to Linux 'inotify' API.Richard W.M. Jones2009-07-311-1/+1
|
* Miscellaneous fixes for non-srcdir builds.Richard Jones2009-07-161-1/+1
|
* java/Makefile.inc: Include this generated file.Richard W.M. Jones2009-07-142-1/+3
| | | | | | We have to include this generated file because it is part of the build system, thus required to exist before the generator runs.
* Automatically generate list of built java sourcesMatthew Booth2009-07-131-2/+6
|
* Don't list Java files explicitly, since these files are auto-generated.Richard W.M. Jones2009-07-101-9/+1
|
* RHEL 5: $(builddir) did not exist with this old autoconf/automake, so ↵Richard Jones2009-07-071-2/+5
| | | | workaround.
* Generate structs and struct lists generically.Richard Jones2009-07-071-30/+0
| | | | | | | | | | | This modifies the way that struct and struct lists are generated (for return values) so that there is no need to add an explicit new type when adding a new structure. All tests pass, and the C API should be compatible. I have also inspected the changes that are made to the generated code by hand.
* Make it possible to build in a separate directoryMatthew Booth2009-07-031-14/+14
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* Remove generated code from git.Richard W.M. Jones2009-07-029-9071/+0
| | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
* Add 'readdir' call.Richard W.M. Jones2009-07-024-0/+98
| | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this.
* Generated code for the virtio_blk change.Richard W.M. Jones2009-07-011-2/+6
|
* Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-302-0/+214
|
* Generated code for 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-302-0/+82
|
* Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-292-0/+108
|
* Generated code for mount-loop command.Richard W.M. Jones2009-06-292-0/+39
|
* Generated code for 'initrd-list'.Richard W.M. Jones2009-06-292-0/+59
|
* Generated code for 'du' command.Richard W.M. Jones2009-06-292-0/+43
|
* Generated code for df / df-h.Richard W.M. Jones2009-06-292-0/+80
|
* Generated code for head/tail commands.Richard W.M. Jones2009-06-292-7/+245
|
* Generated code for 'wc_*' commands.Richard W.M. Jones2009-06-292-0/+108
|
* Clarify documentation for mkdtemp.Richard W.M. Jones2009-06-241-4/+8
|
* Generated code for 'mkdtemp' command.Richard W.M. Jones2009-06-242-0/+52
|
* Generated code for 'scrub-*' commands.Richard W.M. Jones2009-06-232-1/+125
|
* Generated code for 'glob-expand'.Richard Jones2009-06-222-0/+59
|
* Generated code for 'sh' and 'sh-lines' commands.Richard Jones2009-06-222-1/+107
|
* Generated code for ntfs_3g_probe command.Richard Jones2009-06-082-0/+49
|
* Generated code for the 'sleep' command.Richard Jones2009-06-042-0/+33
|
* Generated code for 'add_drive_ro' call.Richard Jones2009-06-022-0/+63
|
* Add tests for bindings parameters, fix several broken bindings.Richard W.M. Jones2009-05-285-14/+98
|
* Add the test0* functions, used to test language bindings.Richard W.M. Jones2009-05-282-0/+1220
|
* Move the appliance and build scripts into new appliance/ subdirectory.Richard W.M. Jones2009-05-281-1/+1
|
* Improve javadoc (RHBZ#501883).Richard Jones2009-05-271-429/+429
|
* Generated code for e2fsck-f command.Richard Jones2009-05-212-0/+46
|