On Sun, Apr 12, 2009 at 08:02:19PM +0200, Ján ONDREJ (SAL) wrote:
I'm not a good C programmer. But if anybody need to use libguestfs from python, I can write interface between your lib and python (using python-ctypes). I have a similar project for clamav library for sagator.
We'd greatly prefer an auto-generated interface, which is how guestfish, the Perl bindings and the OCaml bindings, and all the documentation are done. (And is also much easier to do and maintain).
See:
http://git.et.redhat.com/?p=libguestfs.git;a=blob;f=HACKING;hb=HEAD http://git.et.redhat.com/?p=libguestfs.git;a=blob;f=src/generator.ml;hb=HEAD http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=f4299f7ea55c4bbc93... http://git.et.redhat.com/?p=libguestfs.git;a=commitdiff;h=c168ce1c91c8f4f615...
Rich.
On Sun, Apr 12, 2009 at 09:35:51PM +0100, Richard W.M. Jones wrote:
On Sun, Apr 12, 2009 at 08:02:19PM +0200, Ján ONDREJ (SAL) wrote:
I'm not a good C programmer. But if anybody need to use libguestfs from python, I can write interface between your lib and python (using python-ctypes). I have a similar project for clamav library for sagator.
We'd greatly prefer an auto-generated interface, which is how guestfish, the Perl bindings and the OCaml bindings, and all the documentation are done. (And is also much easier to do and maintain).
Git repo has Python bindings. I'm going to put up a package that contains them later today (will be version 0.9).
Rich.