/*
    Copyright (C) 1995-2007, The AROS Development Team. All rights reserved.

    Desc: 
*/

#include <proto/exec.h>

#include "camd_intern.h"

/*****************************************************************************

    NAME */

	AROS_LH1(struct MidiNode *, FindMidi,

/*  SYNOPSIS */
	AROS_LHA(STRPTR, name, A1),

/*  LOCATION */
	struct CamdBase *, CamdBase, 12, Camd)

/*  FUNCTION
		Finds the midinode with name 'name'.

    INPUTS
		name - Name of midinode to find.

    RESULT
		NULL if no midinode with that name or a pointer to the midinode if success.

    NOTES
		CL_Linkages must be locked.

    EXAMPLE

    BUGS

    SEE ALSO

    INTERNALS

    HISTORY

	2001-01-12 ksvalast first created

*****************************************************************************/
{
    AROS_LIBFUNC_INIT

	return (struct MidiNode *)FindName(&CB(CamdBase)->mymidinodes,name);

   AROS_LIBFUNC_EXIT
}
