]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f2d18633 | 2 | * "$Id$" |
ef416fc2 | 3 | * |
321d8d57 | 4 | * Backend definitions for CUPS. |
ef416fc2 | 5 | * |
321d8d57 | 6 | * Copyright 2007-2011 by Apple Inc. |
ef416fc2 | 7 | * Copyright 1997-2005 by Easy Software Products. |
8 | * | |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 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 | ||
2fb76298 MS |
22 | /* |
23 | * Include necessary headers... | |
24 | */ | |
25 | ||
26 | # include "versioning.h" | |
27 | ||
28 | ||
ef55b745 MS |
29 | /* |
30 | * C++ magic... | |
31 | */ | |
32 | ||
33 | # ifdef __cplusplus | |
34 | extern "C" { | |
35 | # endif /* __cplusplus */ | |
36 | ||
ef416fc2 | 37 | /* |
38 | * Constants... | |
39 | */ | |
40 | ||
5a738aea | 41 | enum cups_backend_e /**** Backend exit codes ****/ |
ef416fc2 | 42 | { |
43 | CUPS_BACKEND_OK = 0, /* Job completed successfully */ | |
44 | CUPS_BACKEND_FAILED = 1, /* Job failed, use error-policy */ | |
fa73b229 | 45 | CUPS_BACKEND_AUTH_REQUIRED = 2, /* Job failed, authentication required */ |
ef416fc2 | 46 | CUPS_BACKEND_HOLD = 3, /* Job failed, hold job */ |
47 | CUPS_BACKEND_STOP = 4, /* Job failed, stop queue */ | |
22c9029b MS |
48 | CUPS_BACKEND_CANCEL = 5, /* Job failed, cancel job */ |
49 | CUPS_BACKEND_RETRY = 6, /* Job failed, retry this job later */ | |
50 | CUPS_BACKEND_RETRY_CURRENT = 7 /* Job failed, retry this job immediately */ | |
5a738aea MS |
51 | }; |
52 | typedef enum cups_backend_e cups_backend_t; | |
53 | /**** Backend exit codes ****/ | |
ef416fc2 | 54 | |
55 | ||
a4d04587 | 56 | /* |
57 | * Prototypes... | |
58 | */ | |
59 | ||
2fb76298 | 60 | extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2; |
749b1e90 MS |
61 | extern void cupsBackendReport(const char *device_scheme, |
62 | const char *device_uri, | |
63 | const char *device_make_and_model, | |
64 | const char *device_info, | |
65 | const char *device_id, | |
66 | const char *device_location) | |
67 | _CUPS_API_1_4; | |
321d8d57 | 68 | |
a4d04587 | 69 | |
ef55b745 MS |
70 | # ifdef __cplusplus |
71 | } | |
72 | # endif /* __cplusplus */ | |
73 | ||
ef416fc2 | 74 | #endif /* !_CUPS_BACKEND_H_ */ |
75 | ||
76 | /* | |
f2d18633 | 77 | * End of "$Id$". |
ef416fc2 | 78 | */ |