home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 144.lha / Leach_v1.3 / globals.h < prev    next >
Encoding:
Text File  |  1986-11-21  |  2.8 KB  |  54 lines

  1. /***************************************************************************
  2.  * GLOBALS.H
  3.  ***************************************************************************/
  4.  
  5. /*----------------------------------------------------------------------------*
  6.  * These are key hooks into the Host's and Leach's screens and windows,
  7.  * which are available to all parts of the program. They are declared in 
  8.  * main.c and defined in other files that need access to them.
  9.  *----------------------------------------------------------------------------*/
  10.  
  11. GLOBAL char                *HostTitle;    /* Pointer to target screen title.        */
  12.                                     /* Determined by default or user input.    */
  13. GLOBAL struct Screen    *HostScreen;
  14. GLOBAL struct Window    *HostWind;        /* Host's primary window            */
  15. GLOBAL struct Menu        *HostMenuStrip; /* 1st Host menu.                    */
  16. GLOBAL struct RastPort    *HostRPort;        /* Taken from Host's window            */
  17. GLOBAL struct MsgPort    *HostUPort;        /* Host window's UserPort            */
  18. GLOBAL struct Task        *HostTask;        /* Taken from Host's UserPort        */
  19. GLOBAL ULONG            HostFlags;        /* The unadulterated flags.            */
  20. GLOBAL ULONG            HostIDCMPflags;    /* The unadulterated flags.            */
  21. GLOBAL ULONG            HostVERflags;    /* IDCMP flags for verifications.    */
  22. GLOBAL UBYTE            HostSig;        /* Taken from Host's UserPort        */
  23. GLOBAL UBYTE            H_quit_menu;    /* Menu and item #'s of Host's QUIT    */
  24. GLOBAL UBYTE            H_quit_item;    /* menu selection.                    */
  25. GLOBAL UBYTE            H_found_quit;    /* Quit Host menu item exists flag.    */
  26. GLOBAL short            charwidth;        /* Host's text dimentions.            */
  27. GLOBAL short            charheight;        /* Taken from Host's RastPort        */
  28.  
  29. GLOBAL struct Screen    *StatScreen;    /* Leach's status display screen    */
  30. GLOBAL struct Window    *StatWind;        /* Leach's borderless status window.*/
  31. GLOBAL struct RastPort    *StatRPort;        /* For Leach's status screen.        */
  32. GLOBAL struct ViewPort    *StatVP;        /* For Leach's status screen.        */
  33. GLOBAL struct Task        *LeachTask;    
  34. GLOBAL UBYTE            L_menu_num;        /* Leach menu's position in the        */
  35. GLOBAL UBYTE            L_menuitem_num;    /* Host's menustrip.                */
  36. GLOBAL UBYTE            LeachSig;
  37.  
  38. GLOBAL ULONG            HostIDCMPmods;    /* The flags that Leach has set.    */
  39. GLOBAL ULONG            HostFlagsmods;    
  40.  
  41. /*----------------------------------------------------------------------*
  42.  * HostIPort holds the address of the message port that Intuition expects
  43.  * messages sent to the Host to be Replied to. This address is picked out
  44.  * of the first msg that Intuition sends. From that point on, checkmsg()
  45.  * will substitute the address of MyPort in these messages. Thus, the Host
  46.  * will return IntuiMessages to Leach, which will restore the Intuition
  47.  * port's address and return. All this means that Leach can tell if it
  48.  * has processed a msg in the Host's queue by the ReplyPort address.
  49.  *----------------------------------------------------------------------*/
  50.  
  51. GLOBAL struct MsgPort    *HostIPort;
  52. GLOBAL struct MsgPort    *MyPort;
  53. GLOBAL UBYTE            MySig;
  54.