From 5f9be62e68b120f51c948404e7f0cf3430962c68 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 13 Nov 2009 16:36:04 +0000 Subject: [PATCH 1/1] Docs: Add documentation about other language bindings to API overview. --- guestfs.pod | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/guestfs.pod b/guestfs.pod index ec073ee..3aa806a 100644 --- a/guestfs.pod +++ b/guestfs.pod @@ -419,6 +419,60 @@ yourself, and then pass them to C functions. See also the programs L, L and L for more help on this issue. +=head2 USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES + +Although we don't want to discourage you from using the C API, we will +mention here that the same API is also available in other languages. + +The API is broadly identical in all supported languages. As an +example, in Python the handle itself is replaced by an object, but we +don't try to "object orientify" any other parts of the API. + +=over 4 + +=item B + +You can use the I header file from C++ programs. The C++ +API is identical to the C API. + +=item B + +This is the only language binding that is incomplete. Only calls +which return simple integers have been bound in Haskell, and we are +looking for help to complete this binding. + +=item B + +Full documentation is contained in the Javadoc which is distributed +with libguestfs. + +=item B + +For documentation see the file C. + +=item B + +For documentation see L. + +=item B + +For documentation do: + + $ python + >>> import guestfs + >>> help (guestfs) + +=item B + +Use the Guestfs module. There is no Ruby-specific documentation, but +you can find examples written in Ruby in the libguestfs source. + +=item B + +For documentation see L. + +=back + =head1 CONNECTION MANAGEMENT =head2 guestfs_h * -- 1.8.3.1