summaryrefslogtreecommitdiff
path: root/support/dktools/dk4lprng.h
blob: 02d94a798b5aef54572553b9f9ee9d8a166205d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef DK4LPRNG_H_INCLUDED
/**	Protection against multiple inclusion.
*/
#define	DK4LPRNG_H_INCLUDED	1

/**	@file	dk4lprng.h	Constant values related to LPRng.
*/

/**	Exit status codes defined by the LPRng print system.
*/
enum {
			/**	Success.
			*/
  LPRNG_EXIT_SUCCESS	= 0 ,

			/**	Transient error condition, retry later.
			*/
  LPRNG_EXIT_FAILURE	= 1 ,	/* alternative: 32 */

			/**	Abort, terminate queue processing.
				Unprocessable print data found, remove
				job from queue.
			*/
  LPRNG_EXIT_ABORT	= 2 ,	/* alternative: 33 */

			/**	Unrecoverable error, remove job from queue.
				Use for permission and quota problems.
			*/
  LPRNG_EXIT_REMOVE	= 3 ,	/* alternative: 34 */

			/**	Hold job for later processing.
				Typically used if resources are not available.
			*/
  LPRNG_EXIT_HOLD	= 6 ,	/* alternative: 37 */

			/**	No spooling to this queue.
				Used by load balancing.
			*/
  LPRNG_EXIT_NOSPOOL	= 7 ,	/* alternative: 38 */

			/**	No printing from this queue.
				Used by load balancing.
			*/
  LPRNG_EXIT_NOPRINT	= 8 ,	/* alternative: 39 */

			/**	Interrupted by signal.
				Signal or non-restartable system failure.
			*/
  LPRNG_EXIT_SIGNAL	= 9 ,	/* alternative: 40 */

			/**	Failed, do not retry.
			*/
  LPRNG_EXIT_FAILNOR	= 10,	/* alternative: 41 */
};


/**	As long as we have not changed printqd we need the job name
	in accounting.
*/
#define	ACCOUNTING_WITH_JOB_NAME	1


#endif