2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Add a resource to the public list of resources.
8 #include <aros/debug.h>
9 #include <exec/execbase.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
17 AROS_LH1(void, AddResource
,
20 AROS_LHA(APTR
, resource
, A1
),
23 struct ExecBase
*, SysBase
, 81, Exec
)
26 Adds a given resource to the system's resource list.
29 resource - Pointer to a ready for use resource.
40 RemResource(), OpenResource()
44 ******************************************************************************/
47 ASSERT_VALID_PTR(resource
);
49 /* Just in case the user forgot them */
50 ((struct Node
*)resource
)->ln_Type
=NT_RESOURCE
;
52 /* Arbitrate for the resource list */
55 /* And add the resource */
56 Enqueue(&SysBase
->ResourceList
,(struct Node
*)resource
);