]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/backend.h
Merge changes from CUPS 1.4svn-r7961.
[thirdparty/cups.git] / cups / backend.h
1 /*
2 * "$Id: backend.h 7810 2008-07-29 01:11:15Z mike $"
3 *
4 * Backend definitions for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007-2008 by Apple Inc.
7 * Copyright 1997-2005 by Easy Software Products.
8 *
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
14 *
15 * This file is subject to the Apple OS-Developed Software exception.
16 */
17
18 #ifndef _CUPS_BACKEND_H_
19 # define _CUPS_BACKEND_H_
20
21
22 /*
23 * Include necessary headers...
24 */
25
26 # include "versioning.h"
27
28
29 /*
30 * Constants...
31 */
32
33 enum cups_backend_e /**** Backend exit codes ****/
34 {
35 CUPS_BACKEND_OK = 0, /* Job completed successfully */
36 CUPS_BACKEND_FAILED = 1, /* Job failed, use error-policy */
37 CUPS_BACKEND_AUTH_REQUIRED = 2, /* Job failed, authentication required */
38 CUPS_BACKEND_HOLD = 3, /* Job failed, hold job */
39 CUPS_BACKEND_STOP = 4, /* Job failed, stop queue */
40 CUPS_BACKEND_CANCEL = 5 /* Job failed, cancel job */
41 };
42 typedef enum cups_backend_e cups_backend_t;
43 /**** Backend exit codes ****/
44
45
46 /*
47 * Prototypes...
48 */
49
50 extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2;
51 extern void cupsBackendReport(const char *device_scheme,
52 const char *device_uri,
53 const char *device_make_and_model,
54 const char *device_info,
55 const char *device_id,
56 const char *device_location)
57 _CUPS_API_1_4;
58
59
60 #endif /* !_CUPS_BACKEND_H_ */
61
62 /*
63 * End of "$Id: backend.h 7810 2008-07-29 01:11:15Z mike $".
64 */