2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
8 #include <exec/execbase.h>
9 #include <exec/lists.h>
10 #include <aros/libcall.h>
11 #include <exec/libraries.h>
12 #include <proto/exec.h>
14 #include "exec_intern.h"
15 #include "exec_debug.h"
16 #include "exec_locks.h"
18 /*****************************************************************************
22 AROS_LH1(APTR
, OpenResource
,
25 AROS_LHA(CONST_STRPTR
, resName
, A1
),
28 struct ExecBase
*, SysBase
, 83, Exec
)
31 Return a pointer to a previously installed resource addressed by
32 name. If this name can't be found NULL is returned.
35 resName - Pointer to the resource's name.
38 Pointer to resource or NULL.
47 AddResource(), RemResource()
51 *****************************************************************************/
57 /* Arbitrate for the resource list */
58 EXEC_LOCK_LIST_READ_AND_FORBID(&SysBase
->ResourceList
);
60 /* Look for the resource in our list */
61 resource
= (APTR
) FindName (&SysBase
->ResourceList
, resName
);
64 EXEC_UNLOCK_LIST_AND_PERMIT(&SysBase
->ResourceList
);