]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/backend.h
Update ipp documentation to reflect the behavior of configuring WiFi on IPP USB printers.
[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 *
e3101897 7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ef416fc2 8 */
9
10#ifndef _CUPS_BACKEND_H_
11# define _CUPS_BACKEND_H_
12
13
2fb76298
MS
14/*
15 * Include necessary headers...
16 */
17
18# include "versioning.h"
19
20
ef55b745
MS
21/*
22 * C++ magic...
23 */
24
25# ifdef __cplusplus
26extern "C" {
27# endif /* __cplusplus */
28
ef416fc2 29/*
30 * Constants...
31 */
32
5a738aea 33enum 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 */
22c9029b
MS
40 CUPS_BACKEND_CANCEL = 5, /* Job failed, cancel job */
41 CUPS_BACKEND_RETRY = 6, /* Job failed, retry this job later */
42 CUPS_BACKEND_RETRY_CURRENT = 7 /* Job failed, retry this job immediately */
5a738aea
MS
43};
44typedef enum cups_backend_e cups_backend_t;
45 /**** Backend exit codes ****/
ef416fc2 46
47
a4d04587 48/*
49 * Prototypes...
50 */
51
2fb76298 52extern const char *cupsBackendDeviceURI(char **argv) _CUPS_API_1_2;
749b1e90
MS
53extern void cupsBackendReport(const char *device_scheme,
54 const char *device_uri,
55 const char *device_make_and_model,
56 const char *device_info,
57 const char *device_id,
58 const char *device_location)
59 _CUPS_API_1_4;
321d8d57 60
a4d04587 61
ef55b745
MS
62# ifdef __cplusplus
63}
64# endif /* __cplusplus */
65
ef416fc2 66#endif /* !_CUPS_BACKEND_H_ */