home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / toolmanager_442.lzh / ToolManager / ToolManager.h < prev    next >
C/C++ Source or Header  |  1991-01-20  |  2KB  |  61 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. /* Version number & dates */
  24. #define TM_VERSION "1.2"
  25. #define TM_CRYEAR "1991"
  26. #define TM_DATE "13.01.1991"
  27.  
  28. /* Entry for tool list */
  29. struct ToolNode {
  30.                  struct Node tn_Node;
  31.                  BPTR tn_DirLock;
  32.                  char *tn_RealName;
  33.                  struct AppMenuItem *tn_MenuItem;
  34.                  ULONG tn_ID;
  35.                 };
  36.  
  37. /* Prototypes for library functions */
  38. struct ToolNode *GetHead(struct List *);
  39. struct ToolNode *GetSucc(struct ToolNode *);
  40.  
  41. /* Prototypes for program functions */
  42. void startup(void);
  43. void mainloop(void);
  44. BOOL WBAddToolNode(struct WBArg *, int);
  45. BOOL AddToolNode(BPTR, char *, char *);
  46. void RemToolNode(struct ToolNode *tn);
  47. void RemoveTools(void);
  48. ULONG OpenStatusWindow(void);
  49. void RefreshStatusWindow(void);
  50. void DetachToolList(void);
  51. void AttachToolList(void);
  52. BOOL HandleWindowEvent(void);
  53. void CloseStatusWindow(void);
  54. void cleanup(int);
  55.  
  56. /* Global variables */
  57. extern struct MsgPort *MyMP;
  58. extern struct List ToolList;
  59. extern UWORD ToolCount;
  60. extern char ConfigName[];
  61.