2 * Backend definitions for CUPS.
4 * Copyright 2007-2011 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products.
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
10 #ifndef _CUPS_BACKEND_H_
11 # define _CUPS_BACKEND_H_
15 * Include necessary headers...
18 # include "versioning.h"
27 # endif /* __cplusplus */
33 enum cups_backend_e
/**** Backend exit codes ****/
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 CUPS_BACKEND_RETRY
= 6, /* Job failed, retry this job later */
42 CUPS_BACKEND_RETRY_CURRENT
= 7 /* Job failed, retry this job immediately */
44 typedef enum cups_backend_e cups_backend_t
;
45 /**** Backend exit codes ****/
52 extern const char *cupsBackendDeviceURI(char **argv
) _CUPS_API_1_2
;
53 extern 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
)
64 # endif /* __cplusplus */
66 #endif /* !_CUPS_BACKEND_H_ */