summaryrefslogtreecommitdiff
path: root/source3/include/rpc_spoolss.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-02-23 03:59:37 +0000
committerJeremy Allison <jra@samba.org>2001-02-23 03:59:37 +0000
commited77fca1990f96dba6fe9204e551056395c6ed29 (patch)
tree955f1e173e91fbccb9a7325567373fe708640fac /source3/include/rpc_spoolss.h
parent7bab8111d2b1668495b8e0411fa1de6b174aacdc (diff)
downloadsamba-ed77fca1990f96dba6fe9204e551056395c6ed29.tar.gz
samba-ed77fca1990f96dba6fe9204e551056395c6ed29.tar.bz2
samba-ed77fca1990f96dba6fe9204e551056395c6ed29.zip
include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.
include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy. (This used to be commit 71029da7dd74eb91dd6953752bdf238f319d985d)
Diffstat (limited to 'source3/include/rpc_spoolss.h')
-rwxr-xr-xsource3/include/rpc_spoolss.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 94d5985688..82719b6bc9 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -154,6 +154,20 @@
#define PRINTER_ACCESS_USE 0x00000008
#define JOB_ACCESS_ADMINISTER 0x00000010
+/* JOB status codes. */
+
+#define JOB_STATUS_PAUSED 0x001
+#define JOB_STATUS_ERROR 0x002
+#define JOB_STATUS_DELETING 0x004
+#define JOB_STATUS_SPOOLING 0x008
+#define JOB_STATUS_PRINTING 0x010
+#define JOB_STATUS_OFFLINE 0x020
+#define JOB_STATUS_PAPEROUT 0x040
+#define JOB_STATUS_PRINTED 0x080
+#define JOB_STATUS_DELETED 0x100
+#define JOB_STATUS_BLOCKED 0x200
+#define JOB_STATUS_USER_INTERVENTION 0x400
+
/* ACE masks for the various print permissions */
#define PRINTER_ACE_FULL_CONTROL GENERIC_ALL_ACCESS