2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
16 #include <proto/alib.h>
18 struct IORequest
* CreateExtIO (
21 struct MsgPort
* port
,
25 Create an extended IORequest structure. This structure can
26 be freed with DeleteExtIO().
29 port - MsgPort to be signaled on events
30 iosize - Size of the structure
33 A pointer to the new IORequest structure.
42 CreateStdIO(), DeleteExtIO()
48 ******************************************************************************/
50 struct IORequest
*ioreq
=NULL
;
52 if (port
&& (ioreq
= AllocMem (iosize
, MEMF_CLEAR
|MEMF_PUBLIC
)))
54 /* Initialize the structure */
55 ioreq
->io_Message
.mn_Node
.ln_Type
= NT_MESSAGE
;
56 ioreq
->io_Message
.mn_ReplyPort
= port
;
57 ioreq
->io_Message
.mn_Length
= iosize
;