Updated PCI IDs to latest snapshot.
[tangerine.git] / rom / utility / findtagitem.c
blob89f2a8093d8ec26af3230189d1bbb03b82e669a5
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <exec/types.h>
9 #include <utility/utility.h>
10 #include <utility/tagitem.h>
11 #include <aros/libcall.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/utility.h>
18 AROS_LH2(struct TagItem *, FindTagItem,
20 /* SYNOPSIS */
21 AROS_LHA(Tag, tagValue, D0),
22 AROS_LHA(const struct TagItem *, tagList, A0),
24 /* LOCATION */
25 struct UtilityBase *, UtilityBase, 5, Utility)
27 /* FUNCTION
29 INPUTS
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 HISTORY
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 struct TagItem *tag;
50 const struct TagItem *tagptr = tagList;
52 while( (tag = NextTagItem(&tagptr)) )
54 if(tag->ti_Tag == tagValue) return tag;
57 return NULL;
59 AROS_LIBFUNC_EXIT
60 } /* FindTagItem */