[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 5/5] remote generator: Move blacklist to a file and add explicit whitelist

On Tue, May 10, 2011 at 04:32:57PM +0100, Daniel P. Berrange wrote:
> Yeah, either we duplicate the VIR_CONNECT_RO flag checks in
> the remote dispatch, or we could actually generate the libvirt.c
> and driver.h files too, based on the RPC.


More code generation is better.  Here is all the code you need to
write to make a new libguestfs API function:


That's not a printing error, it really is just 38 lines of code.

>From that template we generate:

  - RPC stubs similar to libvirt remote driver
  - bindings in around 8 programming languages
  - <guestfs.h> header file
  - several manual pages, eg: http://libguestfs.org/guestfs.3.html#api_calls
  - guestfish
  - part of the automated tests

This is a huge time saver, and reduces bugs.



Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]