.\" 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_DEVICE" "" "06 October 2005" "" ""
.SH NAME
parport_find_device \- find a specific device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int parport_find_device (const char * \fImfg\fB, const char * \fImdl\fB, int \fIfrom\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImfg\fB\fR
required manufacturer string
.TP
\fB\fImdl\fB\fR
required model string
.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 'MFG' string matches \fImfg\fR and whose 'MDL'
string matches \fImdl\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.