summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-06-06 01:19:56 +0000
committerTim Potter <tpot@samba.org>2002-06-06 01:19:56 +0000
commit617a551c4255aafc4612939ac05779e495f370ac (patch)
tree71c30d48189c09431880f4d9ad30d97c76531643
parentbfa2dfaba846bd91fd084e9358f5ff8cd0d7dc4b (diff)
downloadsamba-617a551c4255aafc4612939ac05779e495f370ac.tar.gz
samba-617a551c4255aafc4612939ac05779e495f370ac.tar.bz2
samba-617a551c4255aafc4612939ac05779e495f370ac.zip
Moved some notify related constants into srv_spoolss_nt.c since
they're only used there. Added a PRINTER_NOTIFY_VERSION constant. (This used to be commit 9d3933a59219388c209d8be4ae6decfa337d229f)
-rwxr-xr-xsource3/include/rpc_spoolss.h7
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/source3/include/rpc_spoolss.h b/source3/include/rpc_spoolss.h
index 0cbbad19f9..5ed64c63d0 100755
--- a/source3/include/rpc_spoolss.h
+++ b/source3/include/rpc_spoolss.h
@@ -194,9 +194,7 @@
#define JOB_WRITE STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER
#define JOB_EXECUTE STANDARD_RIGHTS_EXECUTE_ACCESS|JOB_ACCESS_ADMINISTER
-#define ONE_VALUE 1
-#define TWO_VALUE 2
-#define POINTER 3
+/* Print notification constants */
#define PRINTER_NOTIFY_TYPE 0x00
#define JOB_NOTIFY_TYPE 0x01
@@ -313,6 +311,8 @@
#define PRINTER_NOTIFY_INFO_DISCARDED 0x1
+#define PRINTER_NOTIFY_VERSION 0x2
+
/*
* Set of macros for flagging what changed in the PRINTER_INFO_2 struct
* when sending messages to other smbd's
@@ -2114,4 +2114,3 @@ SPOOL_R_GETPRINTPROCESSORDIRECTORY;
#define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"
#endif /* _RPC_SPOOLSS_H */
-
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 40ad3e89fe..f35f089535 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -2466,6 +2466,14 @@ struct s_notify_info_data_table
NT_PRINTER_INFO_LEVEL *printer, TALLOC_CTX *mem_ctx);
};
+/* A table describing the various print notification constants and
+ whether the notification data is a pointer to a variable sized
+ buffer, a one value uint32 or a two value uint32. */
+
+#define ONE_VALUE 1
+#define TWO_VALUE 2
+#define POINTER 3
+
struct s_notify_info_data_table notify_info_data_table[] =
{
{ PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_SERVER_NAME, "PRINTER_NOTIFY_SERVER_NAME", POINTER, spoolss_notify_server_name },