2 Copyright © 1995-2013, 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
)
36 Send a packet to a handler without waiting for the result. The packet
37 will be returned to 'replyport'.
40 packet - the (initialized) packet to send
41 port - the MsgPort to send the packet to
42 replyport - the MsgPort to which the packet will be replied
45 This function is callable from a task.
54 DoPkt(), WaitPkt(), AbortPkt()
58 *****************************************************************************/
62 D(bug("[DOS] SendPkt(0x%p, 0x%p, 0x%p)\n", dp
, port
, replyport
));
64 internal_SendPkt(dp
, port
, replyport
);
69 /* Also needed by Dos/DoPkt() */
70 void internal_SendPkt(struct DosPacket
*dp
, struct MsgPort
*port
, struct MsgPort
*replyport
)
72 dp
->dp_Port
= replyport
;
73 dp
->dp_Link
->mn_ReplyPort
= replyport
;
75 PutMsg(port
, dp
->dp_Link
);