2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
9 #include <aros/libcall.h>
10 #include <exec/ports.h>
11 #include <proto/exec.h>
13 #include "exec_intern.h"
14 #include "exec_util.h"
16 /*****************************************************************************
20 AROS_LH1(void, ReplyMsg
,
23 AROS_LHA(struct Message
*, message
, A1
),
26 struct ExecBase
*, SysBase
, 63, Exec
)
29 Send a message back to where it came from. It's generally not
30 wise to access the fields of a message after it has been replied.
33 message - a message got with GetMsg().
44 WaitPort(), GetMsg(), PutMsg()
48 ******************************************************************************/
55 port
=message
->mn_ReplyPort
;
57 /* Not set? Only mark the message as no longer sent. */
59 message
->mn_Node
.ln_Type
=NT_FREEMSG
;
62 /* Mark the message as replied */
63 message
->mn_Node
.ln_Type
=NT_REPLYMSG
;
65 InternalPutMsg(port
, message
, SysBase
);