home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d183 / pcq.lha / PCQ / Include / ExecIO.i < prev    next >
Text File  |  1989-02-26  |  1KB  |  59 lines

  1.  
  2.     { These are the structures and functions you'll need to
  3.       do use the Exec IO facility.  Note that this file uses
  4.       all the message stuff, and thus you must include Ports.i
  5.       BEFORE this file. }
  6.  
  7. const
  8.     IOOpenFail  = -1;
  9.     IOAborted   = -2;
  10.     IONoCmd     = -3;
  11.     IOBadLength = -4;
  12.  
  13.     IOQuick     = 1;
  14.  
  15.     CMD_INVALID = 0;
  16.     CMD_RESET   = 1;
  17.     CMD_READ    = 2;
  18.     CMD_WRITE   = 3;
  19.     CMD_UPDATE  = 4;
  20.     CMD_CLEAR   = 5;
  21.     CMD_STOP    = 6;
  22.     CMD_START   = 7;
  23.     CMD_FLUSH   = 8;
  24.  
  25.     CMD_NONSTD  = 9;
  26.  
  27. type
  28.     IORequest = record
  29.     ioMessage : Message;
  30.     ioDevice  : Address;
  31.     ioUnit    : Address;
  32.     ioCommand : Short;
  33.     ioFlags   : Byte;
  34.     ioError   : Byte;
  35.     end;
  36.     IORequestPtr = ^IORequest;
  37.  
  38.     IOStdReq = record
  39.     ioReq     : IORequest;
  40.     ioActual  : Integer;
  41.     ioLength  : Integer;
  42.     ioData    : String;
  43.     ioOffset  : Integer;
  44.     end;
  45.  
  46. Procedure AbortIO(i : IORequestPtr);
  47.     forward;
  48. Procedure BeginIO(i : IORequestPtr);
  49.     forward;
  50. Function CheckIO(i : IORequestPtr): IORequestPtr;
  51.     forward;
  52. Procedure DoIO(i : IORequestPtr): Integer;
  53.     forward;
  54. Procedure SendIO(i : IORequestPtr);
  55.     forward;
  56. Function WaitIO(i : IORequestPtr): Integer;
  57.     forward;
  58.  
  59.