home *** CD-ROM | disk | FTP | other *** search
/ Software Recommendations - 1998 Season 1 / DNBCD4.iso / share / DOS / ipxcopy / SRC.ZIP / SRC / CRDIR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-12  |  911 b   |  44 lines

  1. /*
  2.  
  3.    CRDIR.H
  4.  
  5. */
  6.  
  7. #ifndef _CRDIR_H
  8. #define _CRDIR_H
  9.  
  10. #include <stddef.h>
  11. #include "ccommon.h"
  12. #include "cdirent.h"
  13. #include "cio.h"
  14.  
  15. #define CRDIR_MAX_DEPTH 34
  16. #define CRDIR_MAX_PATH 2048
  17. #define CRDIR_MAX_FILE 300
  18. #define CRDIR_MAX_PATHNAME (CRDIR_MAX_PATH+CRDIR_MAX_FILE)
  19.  
  20. #define CRDIR_RET_DIRS  (0x0200)
  21. #define CRDIR_GO_DIRS   (0x0400)
  22. #define CRDIR_MATCH_CASE CDIR_MATCH_CASE
  23. #define CRDIR_MATCH_ALL CDIR_MATCH_ALL
  24. #define CRDIR_DEFAULT   (CRDIR_GO_DIRS|CRDIR_RET_DIRS)
  25.  
  26. struct _CRDIR_struct
  27. {
  28.    CDIR *cdir_list[CRDIR_MAX_DEPTH];
  29.    int cdir_depth;
  30.    int options;
  31.    struct c_dirent *mem_dir;
  32.    size_t pn_end_pos[CRDIR_MAX_DEPTH];
  33.    char pn[CRDIR_MAX_PATHNAME];
  34.    char pat[CRDIR_MAX_FILE];
  35. };
  36. typedef struct _CRDIR_struct CRDIR;
  37.  
  38. CRDIR *c_openrdir(char *dir, char *pat, int options);
  39. struct c_dirent *c_readrdir(CRDIR *crd);
  40. void c_closerdir(CRDIR *crd);
  41. #define c_getpath(crd) ((crd)->pn)
  42.  
  43. #endif
  44.