grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / dos / sendpkt.c
blobeea1c1847e291678977266aa6aa146dcb51c3d58
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
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>
16 #include <string.h>
18 #include "dos_intern.h"
20 /*****************************************************************************
22 NAME */
23 #include <proto/dos.h>
25 AROS_LH3I(void, SendPkt,
27 /* SYNOPSIS */
28 AROS_LHA(struct DosPacket *, dp, D1),
29 AROS_LHA(struct MsgPort *, port, D2),
30 AROS_LHA(struct MsgPort *, replyport, D3),
32 /* LOCATION */
33 struct DosLibrary *, DOSBase, 41, Dos)
35 /* FUNCTION
36 Send a packet to a handler without waiting for the result. The packet
37 will be returned to 'replyport'.
39 INPUTS
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
44 RESULT
45 This function is callable from a task.
47 NOTES
49 EXAMPLE
51 BUGS
53 SEE ALSO
54 DoPkt(), WaitPkt(), AbortPkt()
56 INTERNALS
58 *****************************************************************************/
60 AROS_LIBFUNC_INIT
62 D(bug("[DOS] SendPkt(0x%p, 0x%p, 0x%p)\n", dp, port, replyport));
64 internal_SendPkt(dp, port, replyport);
66 AROS_LIBFUNC_EXIT
67 } /* SendPkt */
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);