2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
10 #include <proto/exec.h>
12 #include "camd_intern.h"
15 /*****************************************************************************
19 AROS_LH1(void, RemoveMidiLink
,
22 AROS_LHA(struct MidiLink
*, midilink
, A0
),
25 struct CamdBase
*, CamdBase
, 15, Camd
)
28 Removes and frees a midilink from the system.
31 midilink - pointer to midilink to remove.
47 2001-01-12 ksvalast first created
49 *****************************************************************************/
53 ObtainSemaphore(CB(CamdBase
)->CLSemaphore
);
55 UnlinkMidiLink(midilink
,TRUE
,CamdBase
);
57 ReleaseSemaphore(CB(CamdBase
)->CLSemaphore
);
59 if(midilink
->ml_ParserData
!=NULL
) FreeMem(midilink
->ml_ParserData
,sizeof(struct DriverData
));
60 FreeMem(midilink
,sizeof(struct MidiLink
));