]> git.ipfire.org Git - thirdparty/cups.git/blame - man/backend.man
Load cups into easysw/current.
[thirdparty/cups.git] / man / backend.man
CommitLineData
ef416fc2 1.\"
e1d6a774 2.\" "$Id: backend.man 5313 2006-03-20 15:29:09Z mike $"
ef416fc2 3.\"
4.\" Backend man page for the Common UNIX Printing System (CUPS).
5.\"
bd7854cb 6.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 7.\"
8.\" These coded instructions, statements, and computer programs are the
9.\" property of Easy Software Products and are protected by Federal
10.\" copyright law. Distribution and use rights are outlined in the file
11.\" "LICENSE.txt" which should have been included with this file. If this
12.\" file is missing or damaged please contact Easy Software Products
13.\" at:
14.\"
15.\" Attn: CUPS Licensing Information
16.\" Easy Software Products
17.\" 44141 Airport View Drive, Suite 204
18.\" Hollywood, Maryland 20636 USA
19.\"
20.\" Voice: (301) 373-9600
21.\" EMail: cups-info@cups.org
22.\" WWW: http://www.cups.org
23.\"
e1d6a774 24.TH backend 7 "Common UNIX Printing System" "20 March 2006" "Easy Software Products"
ef416fc2 25
26.SH NAME
27backend \- cups backend transmission interfaces
28
29.SH SYNOPSIS
30.B backend
31.br
32.B backend
33job user title num-copies options [
34.I filename
35]
36
37.SH DESCRIPTION
bd7854cb 38Backends are a special type of \fIfilter(7)\fR which is used to
39send print data to and discover different devices on the system.
ef416fc2 40
41.LP
bd7854cb 42Like filters, backends must be capable of reading from a filename
43on the command-line or from the standard input, copying the
44standard input to a temporary file as required by the physical
45interface.
ef416fc2 46
47.LP
48The command name (argv[0]) is set to the device URI of the
49destination printer. Starting with CUPS 1.1.22, any
bd7854cb 50authentication information in argv[0] is removed, so
ef416fc2 51backend developers are urged to use the DEVICE_URI environment
bd7854cb 52variable whenever authentication information is required. The
53CUPS API includes a \fIcupsBackendDeviceURI\fR function for
54retrieving the correct device URI.
ef416fc2 55
56.LP
bd7854cb 57Back-channel data from the device should be relayed to the job
ef416fc2 58filters by writing to file descriptor 3. The CUPS API includes
bd7854cb 59the \fIcupsBackChannelWrite\fR function for this purpose.
ef416fc2 60
61.SH DEVICE DISCOVERY
62When run with no arguments, the backend should list the devices
63and schemes it supports or is advertising to stdout. The output
64consists of zero or more lines consisting of any of the following
65forms:
66
67.nf
bd7854cb 68 device-class scheme "Unknown" "device-info"
69 device-class device-uri "device-make-and-model" "device-info"
70 device-class device-uri "device-make-and-model" "device-info" "device-id"
ef416fc2 71.fi
72
73.LP
74The \fIdevice-class\fR field is one of the following values:
75
76.TP 5
77direct
78.br
79The device-uri refers to a specific direct-access device with no
80options, such as a parallel, USB, or SCSI device.
81
82.TP 5
83file
84.br
85The device-uri refers to a file on disk.
86
87.TP 5
88network
89.br
90The device-uri refers to a networked device and conforms to the
91general form for network URIs.
92
93.TP 5
94serial
95.br
96The device-uri refers to a serial device with configurable baud
97rate and other options. If the device-uri contains a baud value,
98it represents the maximum baud rate supported by the device.
99
100.LP
101The \fIscheme\fR field provides the URI scheme that is supported
102by the backend. Backends should use this form only when the
103backend supports any URI using that scheme. The \fIdevice-uri\fR
104field specifies the full URI to use when communicating with the
105device.
106
107.LP
108The \fIdevice-make-and-model\fR field specifies the make and
109model of the device, e.g. "Acme Foojet 2000". If the make and
110model is not known, you must report "Unknown".
111
112.LP
113The \fIdevice-info\fR field specifies additional information
114about the device. Typically this includes the make and model
115along with the port number or network address, e.g. "Acme Foojet
1162000 USB #1".
117
118.LP
119The optional \fIdevice-id\fR field specifies the IEEE-1284 device
120ID string for the device, which is used to select a matching
121driver.
122
bd7854cb 123.SH PERMISSIONS
124Backends without world execute permissions are run as the root
e1d6a774 125user. Otherwise, the backend is run using the unprivileged user
bd7854cb 126account, typically "lp".
127
ef416fc2 128.SH EXIT CODES
bd7854cb 129The following exit codes are defined for backends; C API
130constants defined in the <cups/backend.h> header file are defined
131in parenthesis:
ef416fc2 132
133.TP 5
1340 (CUPS_BACKEND_OK)
135.br
136The print file was successfully transmitted to the device or
137remote server.
138
139.TP 5
1401 (CUPS_BACKEND_FAILED)
141.br
142The print file was not successfully transmitted to the device or
143remote server. The scheduler will respond to this by canceling
144the job, retrying the job, or stopping the queue depending on the
145state of the error-policy attribute.
146
147.TP 5
bd7854cb 1482 (CUPS_BACKEND_AUTH_REQUIRED)
ef416fc2 149.br
bd7854cb 150The print file was not successfully transmitted because valid
151authentication information is required. The scheduler will
152respond to this by holding the job and adding the
153authentication-required job-reasons keyword.
ef416fc2 154
155.TP 5
1563 (CUPS_BACKEND_HOLD)
157.br
158The print file was not successfully transmitted because it cannot
159be printed at this time. The scheduler will respond to this by
160holding the job.
161
162.TP 5
1634 (CUPS_BACKEND_STOP)
164.br
165The print file was not successfully transmitted because it cannot
166be printed at this time. The scheduler will respond to this by
167stopping the queue.
168
169.TP 5
bd7854cb 1705 (CUPS_BACKEND_CANCEL)
ef416fc2 171.br
bd7854cb 172The print file was not successfully transmitted because one or
173more attributes are not supported. The scheduler will respond to
174this by canceling the job.
ef416fc2 175
176.PP
177All other exit code values are reserved.
178
ef416fc2 179.SH SEE ALSO
bd7854cb 180\fIcupsd(8)\fR, \fIcupsd.conf(5)\fR, \fIfilter(7)\fR
ef416fc2 181.br
182http://localhost:631/help
183
184.SH COPYRIGHT
bd7854cb 185Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
ef416fc2 186.\"
e1d6a774 187.\" End of "$Id: backend.man 5313 2006-03-20 15:29:09Z mike $".
ef416fc2 188.\"