home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / devices / clipboard.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  1.7 KB  |  60 lines

  1. #ifndef DEVICES_CLIPBOARD_H
  2. #define DEVICES_CLIPBOARD_H
  3. /*
  4. **    $Filename: devices/clipboard.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    clipboard device command definitions 
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef        EXEC_NODES_H
  14. #include "exec/nodes.h"
  15. #endif
  16. #ifndef        EXEC_LISTS_H
  17. #include "exec/lists.h"
  18. #endif
  19. #ifndef        EXEC_PORTS_H
  20. #include "exec/ports.h"
  21. #endif
  22.  
  23. #define     CBD_POST          (CMD_NONSTD+0)
  24. #define     CBD_CURRENTREADID    (CMD_NONSTD+1)
  25. #define     CBD_CURRENTWRITEID   (CMD_NONSTD+2)
  26.  
  27. #define     CBERR_OBSOLETEID     1
  28.  
  29.  
  30. struct ClipboardUnitPartial {
  31.     struct  Node cu_Node;     /* list of units */
  32.     ULONG   cu_UnitNum;          /* unit number for this unit */
  33.     /* the remaining unit data is private to the device */
  34. };
  35.  
  36.  
  37. struct IOClipReq {
  38.     struct  Message io_Message;
  39.     struct  Device  *io_Device; /* device node pointer    */
  40.     struct  Unit    *io_Unit; /* unit (driver private)*/
  41.     UWORD   io_Command;          /* device command */
  42.     UBYTE   io_Flags;          /* including QUICK and SATISFY */
  43.     BYTE    io_Error;          /* error or warning num */
  44.     ULONG   io_Actual;          /* number of bytes transferred */
  45.     ULONG   io_Length;          /* number of bytes requested */
  46.     STRPTR  io_Data;          /* either clip stream or post port */
  47.     ULONG   io_Offset;          /* offset in clip stream */
  48.     LONG    io_ClipID;          /* ordinal clip identifier */
  49. };
  50.  
  51. #define     PRIMARY_CLIP    0     /* primary clip unit */
  52.  
  53. struct SatisfyMsg {
  54.     struct  Message sm_Msg;     /* the length will be 6 */
  55.     UWORD   sm_Unit;          /* which clip unit this is */
  56.     LONG    sm_ClipID;          /* the clip identifier of the post */
  57. };
  58.  
  59. #endif    /* DEVICES_CLIPBOARD_H */
  60.