#include #include #include #include #include #include #include #include #include #include #include #include /* Prototypes for system functions */ #include #include #include #include #include #include #include /* Version number & dates */ #define TM_VERSION "1.2" #define TM_CRYEAR "1991" #define TM_DATE "13.01.1991" /* Entry for tool list */ struct ToolNode { struct Node tn_Node; BPTR tn_DirLock; char *tn_RealName; struct AppMenuItem *tn_MenuItem; ULONG tn_ID; }; /* Prototypes for library functions */ struct ToolNode *GetHead(struct List *); struct ToolNode *GetSucc(struct ToolNode *); /* Prototypes for program functions */ void startup(void); void mainloop(void); BOOL WBAddToolNode(struct WBArg *, int); BOOL AddToolNode(BPTR, char *, char *); void RemToolNode(struct ToolNode *tn); void RemoveTools(void); ULONG OpenStatusWindow(void); void RefreshStatusWindow(void); void DetachToolList(void); void AttachToolList(void); BOOL HandleWindowEvent(void); void CloseStatusWindow(void); void cleanup(int); /* Global variables */ extern struct MsgPort *MyMP; extern struct List ToolList; extern UWORD ToolCount; extern char ConfigName[];