2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "realtime_intern.h"
11 /*****************************************************************************
14 #include <libraries/realtime.h>
16 AROS_LH1(struct Conductor
*, NextConductor
,
20 AROS_LHA(struct Conductor
*, previousConductor
, A0
),
24 struct Library
*, RealTimeBase
, 12, RealTime
)
28 Return the next conductor on the conductor list. If 'previousConductor'
29 is NULL, return the first conductor in the list; if not, return the
30 conductor following 'previousConductor'. If 'previousConductor' is the
31 last conductor, this function returns NULL.
35 previousConductor -- The previous conductor or NULL to get the first
40 A pointer to the next conductor or NULL if there are no more conductors.
44 You have to lock the conductors with LockRealTime(RT_CONDUCTORS)
45 before calling this function.
53 FindConductor(), LockRealTime(), UnlockRealTime()
57 Should private conductors be filtered out?
61 26.7.99 SDuvan implemented
63 ******************************************************************************/
68 if (previousConductor
== NULL
)
70 return (struct Conductor
*)GetHead((struct List
*)&GPB(RealTimeBase
)->rtb_ConductorList
);
73 return (struct Conductor
*)GetSucc((struct Node
*)previousConductor
);