cups-driverd.man.in [plain text]
.\" "$Id: cups-driverd.man.in 7662 2008-06-17 14:34:20Z mike $"
.\" cups-driverd man page for the Common UNIX Printing System (CUPS).
.\" Copyright 2007-2009 by Apple Inc.
.\" Copyright 1997-2006 by Easy Software Products.
.\" These coded instructions, statements, and computer programs are the
.\" property of Apple Inc. and are protected by Federal copyright
.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
.\" which should have been included with this file. If this file is
.\" file is missing or damaged, see the license at "http://www.cups.org/".
.TH cups-driverd 8 "CUPS" "16 June 2008" "Apple Inc."
cups-driverd \- cups driver daemon
.I request_id limit options
\fIcups-driverd\fR shows or lists PPD files. It is run in
response to CUPS-Add-Modify-Printer or CUPS-Get-Devices requests.
The first form ("cups-driverd cat ppd-name") writes the named PPD
file to stdout. The output format is an uncompressed PPD file.
The second form lists the available manufacturers or PPD files to
stdout as indicated by the \fIoptions\fR argument. The output
format is an IPP response message. The \fIrequest_id\fR argument
is the request ID from the original IPP request, typically 1. The
\fIlimit\fR argument is the limit value from the original IPP
request - 0 means no limit. Finally, the \fIoptions\fR argument
is a space-delimited list of attributes ("name=value name=value
\&...") that were passed in with the request. Currently
\fIcups-driverd\fR looks for the \fIppd-make\fR and
\fIrequested-attributes\fR attributes and tailors the output
Drivers can be static PPD files under the
\fI@CUPS_DATADIR@/model\fR directory or programs under the
\fI@CUPS_SERVERBIN@/driver\fR directory. Static PPD files must
conform to the Adobe PPD File Format Specification version 4.3
and may be compressed using the \fIgzip(1)\fR program. Driver
programs must implement the command-line interface shown in the
.SS DRIVER PROGRAMS
Driver programs provide an interface to dynamically-generated PPD
files. The following arguments are currently defined:
Lists the supported PPD files to stdout.
drivername cat ppdname
Writes the named PPD file to stdout.
.SS LISTING FILES (drivername list)
When run with the single argument "list", the program must list
the available PPD files it can generate to stdout using the
"drivername:ppdname" language "make" "make and model" "1284 device id"
\fIDrivername\fR is the name of the driver program. \fIPpdname\fR
is the name used to select the given driver. \fILanguage\fR is
the locale associated with the default language of the PPD file,
typically "en". \fIMake\fR is the Manufacturer name from the PPD
file. \fIMake and model\fR is the NickName name from the PPD
file. \fI1284 device id\fR is the 1284DeviceId from the PPD file,
.SS WRITING FILES (drivername cat ppdname)
When the driver program is run with the "cat ppdname" arguments,
it must write the named PPD file to stdout, uncompressed. If the
named PPD file does not exist, the driver program must not write
any output to stdout and report the error to stderr instead.
.SS DRIVER ERROR MESSAGES
Error messages can be relayed back to \fIcupsd\fR by writing them
to stderr. The following prefixes are recognized:
.SH SEE ALSO
cupsd(8), cupsd.conf(5), cupstestppd(1),
Copyright 2007-2009 by Apple Inc.
.\" End of "$Id: cups-driverd.man.in 7662 2008-06-17 14:34:20Z mike $".