home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD2.1 / includes / dos / exall.i < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.8 KB  |  69 lines

  1.     IFND DOS_EXALL_I
  2. DOS_EXALL_I SET 1
  3. **
  4. **    $VER: exall.i 36.5 (12.07.90)
  5. **    Includes Release 38.56
  6. **
  7. **    include file for ExAll() data structures
  8. **
  9. **    (C) Copyright 1989-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.      IFND  EXEC_TYPES_I
  14.      INCLUDE "exec/types.i"
  15.      ENDC
  16.  
  17.      IFND UTILITY_HOOKS_I
  18.      INCLUDE "utility/hooks.i"
  19.      ENDC
  20.  
  21. * values that can be passed for what data you want from ExAll()
  22. * each higher value includes those below it (numerically)
  23. * you MUST chose one of these values
  24.  
  25. ED_NAME        EQU    1
  26. ED_TYPE        EQU    2
  27. ED_SIZE        EQU    3
  28. ED_PROTECTION    EQU    4
  29. ED_DATE        EQU    5
  30. ED_COMMENT    EQU    6
  31.  
  32. *
  33. *   Structure in which exall results are returned in.  Note that only the
  34. *   fields asked for will exist!
  35. *
  36.  
  37.  STRUCTURE ExAllData,0
  38.     APTR    ed_Next        ; next struct ExAllData
  39.     APTR    ed_Name        ; to CSTR
  40.     LONG    ed_Type        ; type of file/dir
  41.     ULONG    ed_Size        ; size of file (if file) in bytes
  42.     ULONG    ed_Prot        ; protection bits
  43.     ULONG    ed_Days        ; datestamp - last modification
  44.     ULONG    ed_Mins
  45.     ULONG    ed_Ticks
  46.     APTR    ed_Comment    ; strings will be after last used field
  47.     LABEL    ed_Strings    ; strings will start after the last USED field
  48.  LABEL ExAllData_SIZEOF
  49.  
  50. *
  51. *   Control structure passed to ExAll.    Unused fields MUST be initialized to
  52. *   0, expecially eac_LastKey.
  53. *
  54. *   eac_MatchFunc is a hook (see utility.library documentation for usage)
  55. *   It should return true if the entry is to returned, false if it is to be
  56. *   ignored.
  57. *
  58. *   This structure MUST be allocated by AllocDosObject()!
  59. *
  60.  
  61.  STRUCTURE ExAllControl,0
  62.     ULONG    eac_Entries     ; number of entries returned in buffer
  63.     ULONG    eac_LastKey     ; Don't touch inbetween linked ExAll calls!
  64.     APTR    eac_MatchString  ; wildcard CSTR for pattern match or NULL
  65.     APTR    eac_MatchFunc    ; optional private wildcard function hook
  66.  LABEL ExAllControl_SIZEOF
  67.  
  68.     ENDC    ; DOS_EXALL_I
  69.