2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <dos/dosextens.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
14 #include <proto/dos.h>
16 AROS_LH2I(struct DosList
*, NextDosEntry
,
19 AROS_LHA(struct DosList
*, dlist
, D1
),
20 AROS_LHA(ULONG
, flags
, D2
),
23 struct DosLibrary
*, DOSBase
, 115, Dos
)
26 Looks for the next dos list entry with the right type. The list
27 must be locked for this.
30 dlist - the value given by LockDosList() or the last call to
32 flags - the same flags as given to LockDosList() or a subset
36 Pointer to dos list entry found or NULL if the are no more entries.
48 *****************************************************************************/
52 static const ULONG flagarray
[]=
53 { 0, LDF_DEVICES
, LDF_ASSIGNS
, LDF_VOLUMES
, LDF_ASSIGNS
, LDF_ASSIGNS
};
58 /* Get next entry. Return NULL if there is none. */
59 dlist
=dlist
->dol_Next
;
64 if(flags
&flagarray
[dlist
->dol_Type
+1])