clipboard.pas 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. This file is part of the Free Pascal run time library.
  3. A file in Amiga system run time library.
  4. Copyright (c) 1998 by Nils Sjoholm
  5. member of the Amiga RTL development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$PACKRECORDS 2}
  13. unit clipboard;
  14. INTERFACE
  15. uses exec;
  16. const
  17. CBD_POST = CMD_NONSTD + 0;
  18. CBD_CURRENTREADID = CMD_NONSTD + 1;
  19. CBD_CURRENTWRITEID = CMD_NONSTD + 2;
  20. CBD_CHANGEHOOK = CMD_NONSTD + 3;
  21. CBERR_OBSOLETEID = 1;
  22. type
  23. pClipboardUnitPartial = ^tClipboardUnitPartial;
  24. tClipboardUnitPartial = record
  25. cu_Node : tNode; { list of units }
  26. cu_UnitNum : ULONG; { unit number for this unit }
  27. { the remaining unit data is private to the device }
  28. end;
  29. pIOClipReq = ^tIOClipReq;
  30. tIOClipReq = record
  31. io_Message : tMessage;
  32. io_Device : pDevice; { device node pointer }
  33. io_Unit : pClipboardUnitPartial; { unit (driver private) }
  34. io_Command : Word; { device command }
  35. io_Flags : Byte; { including QUICK and SATISFY }
  36. io_Error : Shortint; { error or warning num }
  37. io_Actual : ULONG; { number of bytes transferred }
  38. io_Length : ULONG; { number of bytes requested }
  39. io_Data : STRPTR; { either clip stream or post port }
  40. io_Offset : ULONG; { offset in clip stream }
  41. io_ClipID : Longint; { ordinal clip identifier }
  42. end;
  43. const
  44. PRIMARY_CLIP = 0; { primary clip unit }
  45. type
  46. pSatisfyMsg = ^tSatisfyMsg;
  47. tSatisfyMsg = record
  48. sm_Msg : tMessage; { the length will be 6 }
  49. sm_Unit : Word; { which clip unit this is }
  50. sm_ClipID : Longint; { the clip identifier of the post }
  51. end;
  52. pClipHookMsg = ^tClipHookMsg;
  53. tClipHookMsg = record
  54. chm_Type : ULONG; { zero for this structure format }
  55. chm_ChangeCmd, { command that caused this hook invocation: }
  56. { either CMD_UPDATE OR CBD_POST }
  57. chm_ClipID : Longint; { the clip identifier of the new data }
  58. END;
  59. IMPLEMENTATION
  60. end.