EasyManua.ls Logo

Commodore Amiga A500 - Page 70

Commodore Amiga A500
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SYSTEMILIBRARIESI
NAME
FindConfigDev
-
find a matching ConfigDev entry
SYNOPSIS
configDev
=
FindConfigDev( oldConfigDev, manufacturer, product
)
DO
A0
DO
D
1
FUNCTION
This routine searches the list of existing ConfigDev structures in the
system and looks for one that has the specified manufacturer and
product codes.
If
the oldConfigDev is
NULL
the the search is from the start of the list
of configuration devices.
If
it
is not null then
it
searches from the
first configuration device entry AFTER
oldConfigDev.
A
code of
-1
is treated as a wildcard
-
e.g.
it
matches any manufac-
turer (or product)
INPUTS
oldConfigDev
-
a valid ConfigDev structure, or
NULL
to start from
the start of the list.
manufacturer
-
the manufacturer code being searched for, or
-1
to
ignore manufacturer numbers.
product
-
the product code being searched for, or
-1
to ignore
product numbers.
RESULTS
configDev
-
the next ConfigDev entry that matches the manufac-
turer and product codes, or
NULL
if
there are no more matches.
EXCEPTIONS
EXAMPLES
l*
to find all configdevs of the proper type
*l
struct ConfigDev *cd
=
NULL;
while( cd
=
FindConfigDev( cd, MANUFACTURER. PRODUCT
)
)
[
l* do something with the returned ConfigDev
*l
l
SEE ALSO
BUGS

Related product manuals