home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / src / dirlist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-24  |  939 b   |  39 lines

  1. /*  Headers for the directory scanning routines
  2.  
  3.     ©1998 Joseph Walton
  4.  
  5.     This software is distributed under the terms of the GNU General Public
  6.     License; either version 2 of the License, or (at your option) any
  7.     later version.
  8. */
  9.  
  10. #ifndef NFSD_DIRLIST_H
  11. #define NFSD_DIRLIST_H
  12.  
  13. #include "nfs.h"
  14.  
  15. #include <exec/nodes.h>
  16. #include <exec/lists.h>
  17. #include <dos/dos.h>
  18.  
  19. struct DEList {
  20.     struct MinList del_List;
  21.     struct DateStamp del_DateStamp; /* When was this list built? */
  22. };
  23.  
  24. struct DirEntry {
  25.     struct MinNode de_Node;
  26.     int de_NameChars;   /* Number of characters in the name */
  27.     int de_NameInt32s;  /* Number of int32s in the name */
  28.     int32 *de_Name;     /* int32-aligned, zero-padded block of memory */
  29.     u_int  de_Inode;
  30. };
  31.  
  32. /* Public prototypes */
  33. void free_delist_nodes(struct DEList *del);
  34. int readdir(struct LocalFile *dir_lf, int32 *rptr, int32 *rlimit, u_int cookie,
  35.     u_int max_count);
  36.  
  37. #endif
  38.  
  39.