Files
libguestfs/examples
Jim Meyering c372c7c23a maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exit
Convert all uses automatically, via these two commands:
git grep -l '\<exit *(1)' \
  | grep -vEf .x-sc_prohibit_magic_number_exit \
  | xargs --no-run-if-empty \
    perl -pi -e 's/\b(exit ?)\(1\)/$1(EXIT_FAILURE)/'
git grep -l '\<exit *(0)' \
  | grep -vEf .x-sc_prohibit_magic_number_exit \
  | xargs --no-run-if-empty \
  perl -pi -e 's/\b(exit ?)\(0\)/$1(EXIT_SUCCESS)/'
* .x-sc_prohibit_magic_number_exit: New file.

Edit (RWMJ): Don't change Java code.
2009-11-20 12:14:14 +00:00
..
2009-03-03 15:35:50 +00:00

This directory contains various example programs which use the
libguestfs API.

As they are examples, these are licensed so they can be freely copied
and used without any restrictions.

Tips:

(1) To enable verbose messages, set environment variable
LIBGUESTFS_DEBUG=1

(2) If you haven't installed libguestfs, run the examples like this:
LIBGUESTFS_PATH=appliance examples/to-xml
(the path should point to the directory containing vmlinuz.* and
initramfs.* files).