diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-07-01 20:56:58 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-07-02 10:11:55 +0100 |
commit | 5186251f8f681f2ebb028423bb49a748861fd11e (patch) | |
tree | b95ea92a8ed1b9443dc04aaf7cdacc8191291bc0 /src/guestfs-actions.h | |
parent | f20854ec61eef1aea313920f0cf193a78c1a9219 (diff) | |
download | libguestfs-5186251f8f681f2ebb028423bb49a748861fd11e.tar.gz libguestfs-5186251f8f681f2ebb028423bb49a748861fd11e.tar.xz libguestfs-5186251f8f681f2ebb028423bb49a748861fd11e.zip |
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.
Diffstat (limited to 'src/guestfs-actions.h')
-rw-r--r-- | src/guestfs-actions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guestfs-actions.h b/src/guestfs-actions.h index 5300d15e..4f589490 100644 --- a/src/guestfs-actions.h +++ b/src/guestfs-actions.h @@ -210,3 +210,4 @@ extern int guestfs_mkfifo (guestfs_h *handle, int mode, const char *path); extern int guestfs_mknod_b (guestfs_h *handle, int mode, int devmajor, int devminor, const char *path); extern int guestfs_mknod_c (guestfs_h *handle, int mode, int devmajor, int devminor, const char *path); extern int guestfs_umask (guestfs_h *handle, int mask); +extern struct guestfs_dirent_list *guestfs_readdir (guestfs_h *handle, const char *dir); |