Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / camd / findmidi.c
blobef00db2dd42dda7cc55945db6e0dfba2671e2bb5
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 MidiNode *, FindMidi,
19 /* SYNOPSIS */
20 AROS_LHA(STRPTR, name, A1),
22 /* LOCATION */
23 struct CamdBase *, CamdBase, 12, Camd)
25 /* FUNCTION
26 Finds the midinode with name 'name'.
28 INPUTS
29 name - Name of midinode to find.
31 RESULT
32 NULL if no midinode with that name or a pointer to the midinode if success.
34 NOTES
35 CL_Linkages must be locked.
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 2001-01-12 ksvalast first created
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 return (struct MidiNode *)FindName(&CB(CamdBase)->mymidinodes,name);
55 AROS_LIBFUNC_EXIT