revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / camd / findcluster.c
blob60f00eb3e44985a6faaa620e70b2f7cb00da2c07
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <proto/exec.h>
11 #include "camd_intern.h"
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(struct MidiCluster *, FindCluster,
19 /* SYNOPSIS */
20 AROS_LHA(STRPTR, name, A0),
22 /* LOCATION */
23 struct CamdBase *, CamdBase, 22, Camd)
25 /* FUNCTION
26 Finds a midicluster from camd's internal list of midiclusters.
28 INPUTS
29 name - Name of cluster to find.
31 RESULT
32 NULL if cluster could not be found.
34 NOTES
35 - CL_Linkages must be locked before calling.
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 FindMidi()
44 INTERNALS
46 HISTORY
48 2001-01-12 ksvalast first created
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 return (struct MidiCluster *)FindName(&CB(CamdBase)->midiclusters,name);
56 AROS_LIBFUNC_EXIT