(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/expansion.h>

struct ConfigDev * FindConfigDev (oldConfigDev , manufacturer , product)

LOCATION
In ExpansionBase at offset 12

SYNOPSIS
struct ConfigDev * oldConfigDev
LONG manufacturer
LONG product

FUNCTION
FindConfigDev() will search through the list of ConfigDevs and find the one with the matching manufacturer and product identifiers.

The search will start with the ConfigDev after the oldConfigDev, or at the beginning of oldConfigDev is NULL.

A manufacturer or product of -1 is treated as a wildcard and will match any value.

INPUTS
oldConfigDev
The device to start the search after. If NULL the search will start from the beginning of the list.
manufacturer
The manufacturer id of the requested ConfigDev.
of
1 will match any device.
product
The product id of the ConfigDev. A value of -1 will match any device.

RESULT
The address of the first matching ConfigDev structure, or NULL if none could be found.

EXAMPLE
// Find all the config devs in the system
struct ConfigDev *cd = NULL;

while((cd = FindConfigDev(NULL, -1, -1)))
{
    Printf("Found a device:\tMan = %5d\tProd = %d\n",
	cd->cd_Rom.er_Manufacturer,
	cd->cd_Rom.er_Product);
}
SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY