summaryrefslogtreecommitdiff
path: root/man/cups-driverd.man.in
blob: 1c326a95ea5fa5724cda79783922921004b01108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.\"
.\" "$Id$"
.\"
.\"   cups-driverd man page for the Common UNIX Printing System (CUPS).
.\"
.\"   Copyright 1997-2006 by Easy Software Products.
.\"
.\"   These coded instructions, statements, and computer programs are the
.\"   property of Easy Software Products 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 missing or damaged please contact Easy Software Products
.\"   at:
.\"
.\"       Attn: CUPS Licensing Information
.\"       Easy Software Products
.\"       44141 Airport View Drive, Suite 204
.\"       Hollywood, Maryland 20636 USA
.\"
.\"       Voice: (301) 373-9600
.\"       EMail: cups-info@cups.org
.\"         WWW: http://www.cups.org
.\"
.TH cups-driverd 8 "Common UNIX Printing System" "12 February 2006" "Easy Software Products"
.SH NAME
cups-driverd \- cups driver daemon
.SH SYNOPSIS
.B cups-driverd
cat
.I ppd-name
.br
.B cups-driverd
list
.I request_id limit options
.SH DESCRIPTION
\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.
.LP
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
\Ilimit\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
accordingly.
.SH DRIVERS
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
next section.
.Sh DRIVER PROGRAMS
Driver programs provide an interface to dynamically-generated PPD
files. The following arguments are currently defined:
.TP 5
drivername list
.br
Lists the supported PPD files to stdout.
.TP 5
drivername cat ppdname
.br
Writes the named PPD file to stdout.
.Sh 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
following format:
.nf
    "drivername:ppdname" language "make" "make and model" "1284 device id"
.fi
.LP
\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,
if any.
.Sh 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.
.Sh DRIVER ERROR MESSAGES
Error messages can be relayed back to \fIcupsd\fR by writing them
to stderr. The following prefixes are recognized:
.TP 5
DEBUG: [drivername]
.br
Debugging messages
.TP 5
ERROR: [drivername]
.br
Error messages
.TP 5
INFO: [drivername]
.br
Informational messages
.SH SEE ALSO
cupsd(8), cupsd.conf(5), cupstestppd(1),
.br
http://localhost:631/help
.SH COPYRIGHT
Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
.\"
.\" End of "$Id$".
.\"