home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOS_RKRM.lzx / pOS_RKRM / pPrefs / SerialPrefsLib_example / SerialPrefsGad.h < prev   
Encoding:
C/C++ Source or Header  |  1997-03-18  |  1.1 KB  |  47 lines

  1. #ifndef __INC_SERIALPREFSGAD_H
  2. #define __INC_SERIALPREFSGAD_H
  3. /*******************************************************************
  4.  $CRT 18 Oct 1996 : hp
  5.  
  6.  $AUT Holger Papajewski
  7.  $DAT >>SerialPrefsGad.h<<   18 Oct 1996    10:29:04 - (C) ProDAD
  8. *******************************************************************/
  9.  
  10. #include "p:pDOS/Files.h"
  11. #include "p:pIntui/GClass.h"
  12.  
  13.  
  14. struct SerialData
  15. {
  16.   BOOL        (*sd_Load_func)(_R_A0 SerialData*,_R_A1 pOS_FileHandle*);
  17.   BOOL        (*sd_Save_func)(_R_A0 SerialData*,_R_A1 pOS_FileHandle*,_R_D0 ULONG);
  18.   VOID        (*sd_Reset_func)(_R_A0 SerialData*);
  19.  
  20.   pOS_Window   *sd_Window;
  21.   pOS_Catalog  *sd_Catalog;
  22.  
  23.   pOS_Gadget   *sd_BautGad;
  24.   pOS_Gadget   *sd_BufGad;
  25.   pOS_Gadget   *sd_ProtoGad;
  26.   pOS_Gadget   *sd_ParityGad;
  27.   pOS_Gadget   *sd_DataBitGad;
  28.   pOS_Gadget   *sd_StopBitGad;
  29.  
  30.   ULONG        *sd_BautRates;
  31.   ULONG        *sd_Buffers;
  32.   CHAR        **sd_Protocols;
  33.   CHAR        **sd_Parities;
  34.   CHAR        **sd_DataBits;
  35.   CHAR        **sd_StopBits;
  36. };
  37.  
  38.  
  39.  
  40. extern ULONG SerialDispatcher(_R_LB pOS_ExecBase*,_R_A0 const pOS_Class*,
  41.                            _R_A1 SerialData*,_R_A2 pOS_GadgetMethod*);
  42.  
  43.  
  44.  
  45.  
  46. #endif
  47.