struct parport * parport_enumerate ( void);
This returns the head of the list of parallel ports in the system, as a &struct parport. The structure that is returned describes the first port in the list, and its 'next' member points to the next port, or NULL if it's the last port.
If there are no parallel ports in the system, parport_enumerate will return NULL.