home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / resources / filesysres.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  1.8 KB  |  54 lines

  1. #ifndef    RESOURCES_FILESYSRES_H
  2. #define    RESOURCES_FILESYSRES_H
  3. /*
  4. **    $Filename: resources/filesysres.h $
  5. **    $Revision: 1.0 $
  6. **    $Date: 88/07/11 15:32:08 $
  7. **
  8. **    FileSystem.resource description
  9. **
  10. **    (C) Copyright 1988 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef    EXEC_NODES_H
  15. #include    "exec/nodes.h"
  16. #endif
  17. #ifndef    EXEC_LISTS_H
  18. #include    "exec/lists.h"
  19. #endif
  20. #ifndef    LIBRARIES_DOS_H
  21. #include    "libraries/dos.h"
  22. #endif
  23.  
  24. #define    FSRNAME    "FileSystem.resource"
  25.  
  26. struct FileSysResource {
  27.     struct Node fsr_Node;        /* on resource list */
  28.     char   *fsr_Creator;        /* name of creator of this resource */
  29.     struct List fsr_FileSysEntries;    /* list of FileSysEntry structs */
  30. };
  31.  
  32. struct FileSysEntry {
  33.     struct Node fse_Node;    /* on fsr_FileSysEntries list */
  34.                 /* ln_Name is of creator of this entry */
  35.     ULONG   fse_DosType;    /* DosType of this FileSys */
  36.     ULONG   fse_Version;    /* Version of this FileSys */
  37.     ULONG   fse_PatchFlags;    /* bits set for those of the following that */
  38.                 /*   need to be substituted into a standard */
  39.                 /*   device node for this file system: e.g. */
  40.                 /*   0x180 for substitute SegList & GlobalVec */
  41.     ULONG   fse_Type;        /* device node type: zero */
  42.     CPTR    fse_Task;        /* standard dos "task" field */
  43.     BPTR    fse_Lock;        /* not used for devices: zero */
  44.     BSTR    fse_Handler;    /* filename to loadseg (if SegList is null) */
  45.     ULONG   fse_StackSize;    /* stacksize to use when starting task */
  46.     LONG    fse_Priority;    /* task priority when starting task */
  47.     BPTR    fse_Startup;    /* startup msg: FileSysStartupMsg for disks */
  48.     BPTR    fse_SegList;    /* code to run to start new task */
  49.     BPTR    fse_GlobalVec;    /* BCPL global vector when starting task */
  50.     /* no more entries need exist than those implied by fse_PatchFlags */
  51. };
  52.  
  53. #endif    /* RESOURCES_FILESYSRES_H */
  54.