home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 340.lha / JModem_v1.0 / protsupp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-23  |  1.3 KB  |  36 lines

  1. /*******************************************************************
  2.  * protsupp.h, definitions needed to access routines in protsupp.c *
  3.  * Include this file to your protocol implementation.              *
  4.  *******************************************************************/
  5.  
  6. /* Routines in protsupp.c */
  7.  
  8. extern int OpenUpSerial(), OpenUpTimer(), getserdata(), getserchar();
  9. extern int sendserdata(), sendserchar();
  10. extern void Scleanup(), Tcleanup();
  11. extern int SetupWindow(), CheckAbort();
  12. extern void Wcleanup(), PText();
  13.  
  14. /* Global variables that may be needed from within the implementation, too */ 
  15.  
  16. extern struct IOExtSer *RR, *WR;
  17. extern struct timerequest *TR;
  18. extern struct Window *pwin;
  19.  
  20. /* Magical numbers when performing resource deallocation */
  21.  
  22. #define SC_NONE 0    /* Use this when calling Scleanup() */
  23. #define TC_NONE 0    /* Use this when calling Tcleanup() */
  24. #define WC_NONE 0    /* Use this when calling Wcleanup() */
  25. #define GS_TIMEOUT 1 /* Codes returned by getserdata() and getserchar() */
  26. #define GS_NONE 0
  27.  
  28. /* Pass a structure like this to SetupWindow() */
  29.  
  30. struct windef {
  31.   UWORD Width, Height; /* Size of the protocol window */
  32.   UWORD GXpos, GYpos;  /* Gadget X and Y position within the window */
  33.   char *Title;         /* Window title */
  34.   char **Text;         /* Ptr to an array of strings to print in the window */
  35. };
  36.