home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 500-599 / ff589.lza / Term / TermSrc.lha / shared.h < prev    next >
C/C++ Source or Header  |  1991-11-02  |  2KB  |  65 lines

  1. /* emulator => Comm-progi */
  2.  
  3. #define EMULATOR_CURRENT_VERSION "ECV_2.4"
  4. #define CURRENT_VERSION_ACCEPTED "CurrVersAcc"
  5.  
  6.  
  7. struct confuncs {
  8.     VOID    __saveds (*writecon)(APTR, UBYTE *, ULONG);
  9.     ULONG    __saveds (*hostmon)(APTR, UBYTE *, ULONG);
  10.     ULONG    __saveds (*usermon)(APTR, struct IntuiMessage *, UBYTE *, ULONG);
  11.     BOOL    __saveds (*signal)(APTR, ULONG);
  12.  
  13.     BOOL    __saveds (*alloc_resources)(APTR);
  14.     VOID    __saveds (*free_resources)(APTR);
  15.     BOOL    __saveds (*open_console)(APTR);
  16.     VOID    __saveds (*close_console)(APTR);
  17.  
  18.     BOOL    __saveds (*clear_term)(APTR);
  19.     BOOL    __saveds (*reset_term)(APTR);
  20.     BOOL    __saveds (*reset_style)(APTR);
  21.     BOOL    __saveds (*reset_charset)(APTR);
  22.     BOOL    __saveds (*parameters)(APTR);
  23. };
  24.  
  25. struct hostfuncs {
  26.     BOOL    __saveds    (*xem_swrite)(UBYTE *, ULONG);
  27.     LONG    __saveds    (*xem_sread)(UBYTE *, ULONG size, LONG timeout);
  28.     BOOL    __saveds    (*xem_sbreak)(VOID);
  29.     VOID    __saveds    (*xem_sstart)(VOID);
  30.     BOOL    __saveds    (*xem_sstop)(VOID);
  31.     BOOL    __saveds    (*xem_tgets)(UBYTE *, UBYTE *, ULONG);
  32.     VOID    __saveds (*xem_tbeep)(ULONG, ULONG);
  33.  
  34.     ULONG    __saveds __regargs    (*xpr_options)(LONG, struct xpr_option **);
  35.     LONG    __saveds                    (*xpr_sflush)(VOID);
  36. };
  37.  
  38.  
  39. struct EmuMsg {
  40.     struct Message em_msg;
  41.     APTR em_arg;        /* NULL, when error */
  42. };
  43.  
  44.  
  45. /* Comm-progi => emulator */
  46.  
  47. struct sharedvars {
  48.     struct    hostfuncs  *hf;
  49.     struct    Screen    **scr;
  50.     struct    Window    **win;
  51.     struct    RastPort **rp;
  52.  
  53.     ULONG        *extsig;
  54.     UWORD        *depth;    /* screen depth */
  55.  
  56.     struct    ExecBase            *SysBase;
  57.     struct    DosLibrary        *DOSBase;
  58.     struct    GfxBase            *GfxBase;
  59.     struct    IntuitionBase    *IntuitionBase;
  60.     struct    DiskFontBase    *DiskFontBase;
  61.     struct    Library            *ConsoleDevice;
  62.     struct    Library            *KeymapBase;
  63.     struct    RxsLib            *RexxSysBase;
  64. };
  65.