Add 'readdir' call.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jul 2009 19:56:58 +0000 (20:56 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 2 Jul 2009 09:11:55 +0000 (10:11 +0100)
commit5186251f8f681f2ebb028423bb49a748861fd11e
treeb95ea92a8ed1b9443dc04aaf7cdacc8191291bc0
parentf20854ec61eef1aea313920f0cf193a78c1a9219
Add 'readdir' call.

This adds a readdir call (mostly intended for programs).  The
return value is a list of guestfs_dirent structures.

This adds the new types 'struct guestfs_dirent' and
'struct guestfs_dirent_list', along with all the code to
return these in the different language bindings.

Also includes additional tests for OCaml and Perl bindings
to test this.
36 files changed:
.gitignore
capitests/tests.c
daemon/Makefile.am
daemon/actions.h
daemon/readdir.c [new file with mode: 0644]
daemon/stubs.c
fish/cmds.c
fish/completion.c
guestfish-actions.pod
guestfs-actions.pod
guestfs-structs.pod
java/Makefile.am
java/com/redhat/et/libguestfs/Dirent.java [new file with mode: 0644]
java/com/redhat/et/libguestfs/GuestFS.java
java/com_redhat_et_libguestfs_GuestFS.c
ocaml/Makefile.am
ocaml/guestfs.ml
ocaml/guestfs.mli
ocaml/guestfs_c_actions.c
ocaml/t/guestfs_060_readdir.ml [new file with mode: 0644]
perl/Guestfs.xs
perl/lib/Sys/Guestfs.pm
perl/t/060-readdir.t [new file with mode: 0644]
python/guestfs-py.c
python/guestfs.py
ruby/ext/guestfs/_guestfs.c
src/MAX_PROC_NR
src/generator.ml
src/guestfs-actions.c
src/guestfs-actions.h
src/guestfs-structs.h
src/guestfs.c
src/guestfs.h
src/guestfs_protocol.c
src/guestfs_protocol.h
src/guestfs_protocol.x