From: Richard Jones Date: Wed, 8 Apr 2009 12:46:05 +0000 (+0100) Subject: Mention OCaml & Perl bindings in introduction. Error handlers must copy 'msg' if... X-Git-Tag: 0.5~6 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=562efcba335bc726954ed2ebcd75ece9c3aba41f Mention OCaml & Perl bindings in introduction. Error handlers must copy 'msg' if they want to stash it. --- diff --git a/guestfs.pod b/guestfs.pod index 7396644..07dfde5 100644 --- a/guestfs.pod +++ b/guestfs.pod @@ -37,9 +37,8 @@ LVs, what filesystem is in each LV, etc.). It can also run commands in the context of the guest. Also you can access filesystems over FTP. Libguestfs is a library that can be linked with C and C++ management -programs (or management programs written in other languages, if people -contribute the language bindings). You can also use it from shell -scripts or the command line. +programs (or management programs written in OCaml or Perl). +You can also use it from shell scripts or the command line. You don't need to be root to use libguestfs, although obviously you do need enough permissions to access the disk images. @@ -205,6 +204,10 @@ The callback C will be called if there is an error. The parameters passed to the callback are an opaque data pointer and the error message string. +Note that the message string C is freed as soon as the callback +function returns, so if you want to stash it somewhere you must make +your own copy. + The default handler prints messages on C. If you set C to C then I handler is called and the error