picture.datatype: gi_RastPort should not be directly accessed
[AROS.git] / rom / exec / remport.c
blob721fad9539d5a438198ad683e22ced89da092d4f
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Removes a port from the list of public ports.
6 Lang: english
7 */
8 #include <exec/ports.h>
9 #include <exec/execbase.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(void, RemPort,
19 /* SYNOPSIS */
20 AROS_LHA(struct MsgPort *, port, A1),
22 /* LOCATION */
23 struct ExecBase *, SysBase, 60, Exec)
25 /* FUNCTION
26 Remove a public port from the public port list to make it private
27 again. Any further attempts to find this port in the public port
28 list will fail.
30 INPUTS
31 port - Pointer to messageport structure.
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 ******************************************************************************/
47 AROS_LIBFUNC_INIT
49 /* Arbitrate for the list of message ports.*/
50 Forbid();
52 /* Remove the current port. */
53 Remove(&port->mp_Node);
55 /* All done. */
56 Permit();
57 AROS_LIBFUNC_EXIT
58 } /* RemPort */