]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/backend.h
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / cups / backend.h
CommitLineData
ef416fc2 1/*
503b54c9 2 * Backend definitions for CUPS.
ef416fc2 3 *
503b54c9
MS
4 * Copyright 2007-2011 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products.
ef416fc2 6 *
503b54c9
MS
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
57b7b66b 11 * missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12 *
503b54c9 13 * This file is subject to the Apple OS-Developed Software exception.
ef416fc2 14 */
15
16#ifndef _CUPS_BACKEND_H_
17# define _CUPS_BACKEND_H_
18
19
2fb76298
MS
20/*
21 * Include necessary headers...
22 */
23
24# include "versioning.h"
25
26
ef55b745
MS
27/*
28 * C++ magic...
29 */
30
31# ifdef __cplusplus
32extern "C" {
33# endif /* __cplusplus */
34
ef416fc2 35/*
36 * Constants...
37 */
38
5a738aea 39enum cups_backend_e /**** Backend exit codes ****/
ef416fc2 40{
41 CUPS_BACKEND_OK = 0, /* Job completed successfully */
42 CUPS_BACKEND_FAILED = 1, /* Job failed, use error-policy */
fa73b229 43 CUPS_BACKEND_AUTH_REQUIRED = 2, /* Job failed, authentication required */
ef416fc2 44 CUPS_BACKEND_HOLD = 3, /* Job failed, hold job */
45 CUPS_BACKEND_STOP = 4, /* Job failed, stop queue */
22c9029b
MS
46 CUPS_BACKEND_CANCEL = 5, /* Job failed, cancel job */
47 CUPS_BACKEND_RETRY = 6, /* Job failed, retry this job later */
48 CUPS_BACKEND_RETRY_CURRENT = 7 /* Job failed, retry this job immediately */
5a738aea
MS
49};
50typedef enum cups_backend_e cups_backend_t;
51 /**** Backend exit codes ****/
ef416fc2 52
53
a4d04587 54/*
55 * Prototypes...
56 */
57
2fb76298 58extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2;
749b1e90
MS
59extern void cupsBackendReport(const char *device_scheme,
60 const char *device_uri,
61 const char *device_make_and_model,
62 const char *device_info,
63 const char *device_id,
64 const char *device_location)
65 _CUPS_API_1_4;
321d8d57 66
a4d04587 67
ef55b745
MS
68# ifdef __cplusplus
69}
70# endif /* __cplusplus */
71
ef416fc2 72#endif /* !_CUPS_BACKEND_H_ */