home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / resources / filesysres.h < prev    next >
C/C++ Source or Header  |  1991-11-27  |  2KB  |  55 lines

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