mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
This brings libguestfs into line with other projects which have a separate include/ directory for the public header. It's also the case that <guestfs.h> has never particularly belonged in the lib/ subdirectory. Some tools add -Ilib/ but they only need <guestfs.h> and not any other headers from that directory, and separating out the public header allows us to clean those up. This is certainly the case for examples, and some language bindings and some tests. In future I'm hopeful we can use this as the basis to tease out other dependencies, as a prelude to separating them out from the repo.
This is the third rewrite of the virt-df program. It very much
follows the outline of the Perl program which this replaced in
libguestfs 1.7.14.
main.c - main program
domains.c - dealing with libvirt, only used if libvirt is around
at compile time
df.c - getting the stats from libguestfs
output.c - writing the output, CSV output
virt-df.h - header file
Note this also uses the shared options parsing code in
'fish/options.[ch]'.