summaryrefslogtreecommitdiffstats
path: root/backend_common.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2014-04-20 11:05:27 -0400
committerSolomon Peachy <pizza@shaftnet.org>2014-04-20 11:05:27 -0400
commit9196b00a464bcce9d8da5a8ec2959f0aae4b8232 (patch)
tree0cc9325c3409186f06f4048ddeef5ababf7b0de7 /backend_common.h
parenta192f69385fbea49ac193d69e46c7f0e80a92106 (diff)
downloadselphy_print-9196b00a464bcce9d8da5a8ec2959f0aae4b8232.tar.gz
selphy_print-9196b00a464bcce9d8da5a8ec2959f0aae4b8232.tar.bz2
selphy_print-9196b00a464bcce9d8da5a8ec2959f0aae4b8232.zip
common: Replicate CUPS return codes.
General philosophy: OK (self explanatory) FAILED general failures (eg unexpected printer response) HOLD wrong-media-loaded and other job-specific failures STOP printer out of media, or other non-job-specific failures CANCEL job failed to load or parse RETRY temporary failure, retry later RETRY_CURRENT temp failure, retry immediately
Diffstat (limited to 'backend_common.h')
-rw-r--r--backend_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend_common.h b/backend_common.h
index 4181132..0c1833a 100644
--- a/backend_common.h
+++ b/backend_common.h
@@ -150,4 +150,14 @@ extern struct dyesub_backend canonselphy_backend;
extern struct dyesub_backend mitsu70x_backend;
extern struct dyesub_backend dnpds40_backend;
+/* CUPS compatibility */
+#define CUPS_BACKEND_OK 0 /* Sucess */
+#define CUPS_BACKEND_FAILED 1 /* Failed to print use CUPS policy */
+#define CUPS_BACKEND_AUTH_REQUIRED 2 /* Auth required */
+#define CUPS_BACKEND_HOLD 3 /* Hold this job only */
+#define CUPS_BACKEND_STOP 4 /* Stop the entire queue */
+#define CUPS_BACKEND_CANCEL 5 /* Cancel print job */
+#define CUPS_BACKEND_RETRY 6 /* Retry later */
+#define CUPS_BACKEND_RETRY_CURRENT 7 /* Retry immediately */
+
#endif /* __BACKEND_COMMON_H */