.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PARPORT_FIND_CLASS" "" "06 October 2005" "" ""
.SH NAME
parport_find_class \- find a device in a specified class
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int parport_find_class (parport_device_class \fIcls\fB, int \fIfrom\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcls\fB\fR
required class
.TP
\fB\fIfrom\fB\fR
previous device number found in search, or NULL for
new search
.SH "DESCRIPTION"
.PP
This walks through the list of parallel port devices looking
for a device whose 'CLS' string matches \fIcls\fR in their IEEE
1284 Device ID.
.PP
When a device is found matching those requirements, its device
number is returned; if there is no matching device, a negative
value is returned.
.PP
A new search it initiated by passing NULL as the \fIfrom\fR
argument. If \fIfrom\fR is not NULL, the search continues from
that device.