2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include <aros/debug.h>
10 #include <dos/dosextens.h>
11 #include <dos/notify.h>
12 #include <proto/exec.h>
13 #include <exec/initializers.h>
14 #include <proto/utility.h>
18 #include "dos_intern.h"
20 /*****************************************************************************
23 #include <proto/dos.h>
25 AROS_LH3I(void, SendPkt
,
28 AROS_LHA(struct DosPacket
*, dp
, D1
),
29 AROS_LHA(struct MsgPort
*, port
, D2
),
30 AROS_LHA(struct MsgPort
*, replyport
, D3
),
33 struct DosLibrary
*, DOSBase
, 41, Dos
)
37 Send a packet to a handler without waiting for the result. The packet will
38 be returned to 'replyport'.
42 packet -- the (initialized) packet to send
43 port -- the MsgPort to send the packet to
44 replyport -- the MsgPort to which the packet will be replied
48 This function is callable from a task.
58 DoPkt(), WaitPkt(), AbortPkt()
62 *****************************************************************************/
66 D(bug("[DOS] SendPkt(0x%p, 0x%p, 0x%p)\n", dp
, port
, replyport
));
68 internal_SendPkt(dp
, port
, replyport
);
73 /* Also needed by Dos/DoPkt() */
74 void internal_SendPkt(struct DosPacket
*dp
, struct MsgPort
*port
, struct MsgPort
*replyport
)
76 dp
->dp_Port
= replyport
;
77 dp
->dp_Link
->mn_ReplyPort
= replyport
;
79 PutMsg(port
, dp
->dp_Link
);