.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "IEEE1284_FIND_PORTS" 3 "" "" ""
.SH NAME
ieee1284_find_ports \- find ports on the system
.SH "SYNOPSIS"
.ad l
.hy 0

#include <ieee1284\&.h>
.sp
.HP 32
int \ \ \ \ \fBieee1284_find_ports\fR\ (struct\ parport_list
\ \ \ \ \ \ \ \ \ \ \ \ \ \ *\fIlist\fR, int\ \fIflags\fR);
.ad
.hy

.SH "DESCRIPTION"

.PP
This function should be called before the other libieee1284 functions\&. This gives the library a chance to look around and see what's available, and gives the program a chance to choose a port to use\&.

.PP
The \fIlist\fR is a pointer to a parport_list structure that will be filled in on success\&.

.PP
There are no \fIflags\fR defined; use zero for this parameter\&.

.SH "RETURN VALUE"

.TP
\fBE1284_OK\fR
Success\&. \fIlist\fR is filled in and must be destroyed using \fBieee1284_free_ports\fR(3)\&.

.TP
\fBE1284_NOMEM\fR
There is not enough memory available\&.

.TP
\fBE1284_NOTIMPL\fR
One or more of the supplied flags is not supported in this implementation\&.

.SH AUTHOR
Tim Waugh <twaugh@redhat\&.com>.
