home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 458.lha / ToolManager_v1.1 / ToolManager.h < prev    next >
C/C++ Source or Header  |  1991-01-02  |  1KB  |  55 lines

  1. #include <exec/types.h>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <exec/libraries.h>
  6. #include <exec/memory.h>
  7. #include <dos/dos.h>
  8. #include <dos/dostags.h>
  9. #include <intuition/intuition.h>
  10. #include <workbench/icon.h>
  11. #include <workbench/startup.h>
  12. #include <workbench/workbench.h>
  13.  
  14. /* Prototypes for system functions */
  15. #include <clib/dos_protos.h>
  16. #include <clib/exec_protos.h>
  17. #include <clib/gadtools_protos.h>
  18. #include <clib/graphics_protos.h>
  19. #include <clib/icon_protos.h>
  20. #include <clib/intuition_protos.h>
  21. #include <clib/wb_protos.h>
  22.  
  23. /* Entry for tool list */
  24. struct ToolNode {
  25.                  struct Node tn_Node;
  26.                  BPTR tn_DirLock;
  27.                  char *tn_RealName;
  28.                  struct AppMenuItem *tn_MenuItem;
  29.                  ULONG tn_ID;
  30.                 };
  31.  
  32. /* Prototypes for library functions */
  33. struct ToolNode *GetHead(struct List *);
  34. struct ToolNode *GetSucc(struct ToolNode *);
  35.  
  36. /* Prototypes for program functions */
  37. void startup(void);
  38. void mainloop(void);
  39. BOOL WBAddToolNode(struct WBArg *, int);
  40. BOOL AddToolNode(BPTR, char *, char *);
  41. void RemToolNode(struct ToolNode *tn);
  42. void RemoveTools(void);
  43. ULONG OpenStatusWindow(void);
  44. void RefreshStatusWindow(void);
  45. void DetachToolList(void);
  46. void AttachToolList(void);
  47. BOOL HandleWindowEvent(void);
  48. void CloseStatusWindow(void);
  49. void cleanup(int);
  50.  
  51. /* Global variables */
  52. extern struct MsgPort *MyMP;
  53. extern struct List ToolList;
  54. extern UWORD ToolCount;
  55.