home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
m2
/
CycloneModules.lha
/
modules
/
txt
/
Clipboard.def
< prev
next >
Wrap
Text File
|
1996-08-24
|
2KB
|
59 lines
(*$ Implementation- *)
DEFINITION MODULE Clipboard;
(* 22-Aug-96/Stefan Tiemann for Cyclone *)
(* Converted from C-include: clipboard.h 36.5 (2.11.90), Includes Release 40.15 *)
IMPORT ED: ExecD;
FROM SYSTEM IMPORT ADDRESS;
CONST
clipboardName= "clipboard.device";
post= ED.nonstd;
currentReadId= ED.nonstd+1;
currentWriteId= ED.nonstd+2;
changeHook= ED.nonstd +3;
obsoleteId= 1;
TYPE
ClipboardUnitPartial= RECORD
node: ED.Node; (* list of units *)
unitNum: LONGCARD; (* unit number for this unit *)
(* the remaining unit data is private to the device *)
END;
ClipboardUnitPartialPtr= POINTER TO ClipboardUnitPartial;
IOClipReq= RECORD
message: ED.Message;
device: ED.DevicePtr; (* device node pointer *)
unit: ClipboardUnitPartialPtr; (* unit node pointer *)
command: CARDINAL; (* device command *)
flags: ED.IOFlagSet; (* including QUICK and SATISFY *)
error: SHORTINT; (* error or warning num *)
actual: LONGCARD; (* number of bytes transferred *)
length: LONGCARD; (* number of bytes requested *)
data: ADDRESS; (* either clip stream or post port *)
offset: LONGCARD; (* offset in clip stream *)
clipID: LONGINT; (* ordinal clip identifier *)
END;
IOClipReqPtr= POINTER TO IOClipReq;
IOClipboard= IOClipReq;
IOClipboardPtr= IOClipReqPtr;
CONST
primaryClip= 0; (* primary clip unit *)
TYPE
SatisfyMsg= RECORD
msg: ED.Message; (* the length will be 6 *)
unit: CARDINAL; (* which clip unit this is *)
clipID: LONGINT; (* the clip identifier of the post *)
END;
SatisfyMsgPtr= POINTER TO SatisfyMsg;
ClipHookMsg= RECORD
type: LONGCARD; (* zero for this structure format *)
changeCmd: LONGINT; (* command that caused this hook invocation: *)
(* either CMD_UPDATE or CBD_POST *)
clipID: LONGINT; (* the clip identifier of the new data *)
END;
END Clipboard.