tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / rom / exec / remresource.c
blobc1da818feb81065cb8744cad55bc06ea71a033c1
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Removes a resource from the list of public resources.
6 Lang: english
7 */
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
16 AROS_LH1(void, RemResource,
18 /* SYNOPSIS */
19 AROS_LHA(APTR, resource,A1),
21 /* LOCATION */
22 struct ExecBase *, SysBase, 82, Exec)
24 /* FUNCTION
25 Removes a resource from the system resource list.
27 INPUTS
28 resource - Pointer to the resource.
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 AddResource(), OpenResource()
41 INTERNALS
43 ******************************************************************************/
45 AROS_LIBFUNC_INIT
47 /* Arbitrate for the resource list */
48 Forbid();
50 Remove((struct Node *)resource);
52 /* All done. */
53 Permit();
54 AROS_LIBFUNC_EXIT
55 } /* RemResource */