home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / deskutils / _a_l / boota / C-source / h / GetDirs < prev    next >
Encoding:
Text File  |  1992-11-02  |  1.3 KB  |  32 lines

  1. /* > h.GetDirs - (c) Paul Witheridge - Version 2.01 - 02 Nov 1992    */
  2.  
  3. /*===================================================================*/
  4. /*  GetDirs header file                                              */
  5. /*===================================================================*/
  6.  
  7. typedef struct                          /* Define direntry structure */
  8. {
  9.   int load ;                            /* File load address         */
  10.   int exec ;                            /* File execution address    */
  11.   int length ;                          /* File length               */
  12.   int attr ;                            /* File attributes           */
  13.   int type ;                            /* File type                 */
  14.   char *name ;                          /* Object name               */
  15. } direntry ;
  16.  
  17. enum recursive                          /* Define recursion variable */
  18. {
  19.   RECURSE_NEVER,                        /* Process only files        */
  20.   RECURSE_ONCE,                         /* Process directory/files   */
  21.   RECURSE_ALWAYS                        /* Process recursively       */
  22. } ;  
  23.  
  24. enum boolean getdirentrys(              /* Get dir entries           */
  25.   const char *fname,
  26.   const enum recursive recursion,
  27.   enum boolean (*func)(
  28.       const char *path,
  29.       direntry *ptr)) ;
  30.  
  31. /*===================================================================*/
  32.