home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / exec / nodes.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  68 lines

  1. #ifndef    EXEC_NODES_H
  2. #define    EXEC_NODES_H
  3. /*
  4. **    $VER: nodes.h 39.0 (15.10.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Nodes & Node type identifiers.
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include "exec/types.h"
  15. #endif /* EXEC_TYPES_H */
  16.  
  17.  
  18. /*
  19.  *  List Node Structure.  Each member in a list starts with a Node
  20.  */
  21.  
  22. struct Node {
  23.     struct  Node *ln_Succ;    /* Pointer to next (successor) */
  24.     struct  Node *ln_Pred;    /* Pointer to previous (predecessor) */
  25.     UBYTE   ln_Type;
  26.     BYTE    ln_Pri;        /* Priority, for sorting */
  27.     char    *ln_Name;        /* ID string, null terminated */
  28. };    /* Note: word aligned */
  29.  
  30. /* minimal node -- no type checking possible */
  31. struct MinNode {
  32.     struct MinNode *mln_Succ;
  33.     struct MinNode *mln_Pred;
  34. };
  35.  
  36.  
  37. /*
  38. ** Note: Newly initialized IORequests, and software interrupt structures
  39. ** used with Cause(), should have type NT_UNKNOWN.  The OS will assign a type
  40. ** when they are first used.
  41. */
  42. /*----- Node Types for LN_TYPE -----*/
  43. #define NT_UNKNOWN    0
  44. #define NT_TASK        1    /* Exec task */
  45. #define NT_INTERRUPT    2
  46. #define NT_DEVICE    3
  47. #define NT_MSGPORT    4
  48. #define NT_MESSAGE    5    /* Indicates message currently pending */
  49. #define NT_FREEMSG    6
  50. #define NT_REPLYMSG    7    /* Message has been replied */
  51. #define NT_RESOURCE    8
  52. #define NT_LIBRARY    9
  53. #define NT_MEMORY    10
  54. #define NT_SOFTINT    11    /* Internal flag used by SoftInits */
  55. #define NT_FONT        12
  56. #define NT_PROCESS    13    /* AmigaDOS Process */
  57. #define NT_SEMAPHORE    14
  58. #define NT_SIGNALSEM    15    /* signal semaphores */
  59. #define NT_BOOTNODE    16
  60. #define NT_KICKMEM    17
  61. #define NT_GRAPHICS    18
  62. #define NT_DEATHMESSAGE    19
  63.  
  64. #define NT_USER        254    /* User node types work down from here */
  65. #define NT_EXTENDED    255
  66.  
  67. #endif    /* EXEC_NODES_H */
  68.