]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
bc44d920 | 2 | * "$Id: backend.h 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | * |
4 | * Backend definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
5a738aea | 6 | * Copyright 2007-2008 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 | ||
ef416fc2 | 29 | /* |
30 | * Constants... | |
31 | */ | |
32 | ||
5a738aea | 33 | enum cups_backend_e /**** Backend exit codes ****/ |
ef416fc2 | 34 | { |
35 | CUPS_BACKEND_OK = 0, /* Job completed successfully */ | |
36 | CUPS_BACKEND_FAILED = 1, /* Job failed, use error-policy */ | |
fa73b229 | 37 | CUPS_BACKEND_AUTH_REQUIRED = 2, /* Job failed, authentication required */ |
ef416fc2 | 38 | CUPS_BACKEND_HOLD = 3, /* Job failed, hold job */ |
39 | CUPS_BACKEND_STOP = 4, /* Job failed, stop queue */ | |
fa73b229 | 40 | CUPS_BACKEND_CANCEL = 5 /* Job failed, cancel job */ |
5a738aea MS |
41 | }; |
42 | typedef enum cups_backend_e cups_backend_t; | |
43 | /**** Backend exit codes ****/ | |
ef416fc2 | 44 | |
45 | ||
a4d04587 | 46 | /* |
47 | * Prototypes... | |
48 | */ | |
49 | ||
2fb76298 | 50 | extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2; |
a4d04587 | 51 | |
52 | ||
ef416fc2 | 53 | #endif /* !_CUPS_BACKEND_H_ */ |
54 | ||
55 | /* | |
bc44d920 | 56 | * End of "$Id: backend.h 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 57 | */ |