2 Copyright © <year>, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
10 #include LC_LIBDEFS_FILE
12 /*****************************************************************************
15 #include <proto/setpatch.h>
17 AROS_LH1(struct PatchEntry
*, FindPatch
,
20 AROS_LHA(CONST_STRPTR
, name
, A0
),
23 struct SetPatchBase
*, SetPatchBase
, 7, Setpatch
)
29 name - Name of the patch to search for
33 Pointer to the patch entry if found, or NULL
47 *****************************************************************************/
51 struct PatchEntry
*pe
, *peret
= NULL
;
53 ObtainSemaphore(&SetPatchBase
->sp_Patch3
.sp_Semaphore
);
54 ForeachNode(&SetPatchBase
->sp_Patch3
.sp_PatchList
, pe
) {
55 if (strcmp(pe
->pe_Name
,name
) == 0) {
60 ReleaseSemaphore(&SetPatchBase
->sp_Patch3
.sp_Semaphore
);