home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / cdity / EasyTM_src.lha / EasyTM-src / Node.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-27  |  1.6 KB  |  84 lines

  1. #ifndef NODE_H
  2. #define NODE_H
  3. //************************************
  4. //
  5. // Name : Node.h
  6. //
  7. //************************************
  8.  
  9.  
  10. //**** Header files
  11.  
  12. #ifndef EXEC_LISTS_H
  13. #include <exec/lists.h>
  14. #endif
  15.  
  16.  
  17. //**** Structures
  18.  
  19. struct ProgNode {
  20.   struct Node pn_Node;
  21.   struct AppMenuItem *pn_appmenu;
  22.   STRPTR pn_Filename;
  23.   STRPTR pn_Directory;
  24.   ULONG  pn_LaunchCode;
  25.   ULONG  pn_Stack;
  26.   LONG   pn_Priority;
  27. };
  28.  
  29.  
  30. //**** LaunchCodes
  31.  
  32. #define LC_ENV_MASK    0xF0
  33. #define LC_ARG_MASK    0x0F
  34.  
  35. #define LC_WB        0x10
  36. #define LC_CLI        0x20
  37. #define LC_REXX        0x30
  38. #define LC_BATCH    0x40
  39.  
  40. #define LC_NONE        0x00
  41. #define LC_EACH        0x01
  42. #define LC_ALL        0x02
  43.  
  44. #define LC_WB_NONE     ( LC_WB    | LC_NONE )
  45. #define LC_WB_EACH    ( LC_WB    | LC_EACH )
  46. #define LC_WB_ALL    ( LC_WB    | LC_ALL  )
  47. #define LC_CLI_NONE    ( LC_CLI   | LC_NONE )
  48. #define LC_CLI_EACH    ( LC_CLI   | LC_EACH )
  49. #define LC_CLI_ALL    ( LC_CLI   | LC_ALL  )
  50. #define LC_REXX_NONE    ( LC_REXX  | LC_NONE )
  51. #define LC_REXX_EACH    ( LC_REXX  | LC_EACH )
  52. #define LC_REXX_ALL    ( LC_REXX  | LC_ALL  )
  53. #define LC_BATCH_NONE    ( LC_BATCH | LC_NONE )
  54. #define LC_BATCH_EACH    ( LC_BATCH | LC_EACH )
  55. #define LC_BATCH_ALL    ( LC_BATCH | LC_ALL  )
  56.  
  57.  
  58. //**** Local Data structures
  59.  
  60. extern struct List *List;
  61.  
  62.  
  63. //**** Function protoyupes
  64.  
  65. int InitList(void);
  66. int FreeList(int all);
  67. long ListLength(void);
  68.  
  69. struct ProgNode *NewNode(void);
  70. int DisposeNode(struct ProgNode *pn);
  71.  
  72. struct Node *FindNthNode(long n);
  73.  
  74.  
  75. //****
  76.  
  77. void pnSetItem(struct ProgNode *pn, char *item);
  78. void pnSetFilename(struct ProgNode *pn, char *filename);
  79. void pnSetDirectory(struct ProgNode *pn, char *directory);
  80.  
  81.  
  82. //**** End of file
  83. #endif
  84.