2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
10 #include "camd_intern.h"
13 /*****************************************************************************
17 AROS_LH1(struct MidiNode
*, NextMidi
,
20 AROS_LHA(struct MidiNode
*, midinode
, A0
),
23 struct CamdBase
*, CamdBase
, 11, Camd
)
26 Returns the next midinode in the list of midinodes, or NULL
27 if midinode was the last one.
30 midinode - The midinode to begin searching from. If NULL,
31 returns the first midinode in the list.
36 CL_Linkages must be locked.
48 2001-01-12 ksvalast first created
50 *****************************************************************************/
54 struct Node
*node
=CB(CamdBase
)->mymidinodes
.lh_Head
;
57 if(IsListEmpty(&CB(CamdBase
)->mymidinodes
)) return NULL
;
58 return (struct MidiNode
*)node
;
61 if(midinode
->mi_Node
.ln_Succ
->ln_Succ
==NULL
) return NULL
;
63 return (struct MidiNode
*)midinode
->mi_Node
.ln_Succ
;