Rev 11515: Add FindClosePrinterNotify. in file:///home/jelmer/bzr.samba/SAMBA_4_0/

Jelmer Vernooij jelmer at samba.org
Sun Feb 18 12:02:44 GMT 2007


At file:///home/jelmer/bzr.samba/SAMBA_4_0/

------------------------------------------------------------
revno: 11515
revision-id: jelmer at samba.org-20070218120236-9q5wvlctgevr438d
parent: svn-v2:21423 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: SAMBA_4_0
timestamp: Sun 2007-02-18 13:02:36 +0100
message:
  Add FindClosePrinterNotify.
modified:
  source/librpc/idl/spoolss.idl  svn-v2:6 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0-source%2flibrpc%2fidl%2fspoolss.idl
  source/torture/ndr/spoolss.c   svn-v2:21415 at 0c0555d6-39d7-0310-84fc-f1cc0bd64818-branches%2fSAMBA_4_0-source%2ftorture%2fndr%2fspoolss.c
=== modified file 'source/librpc/idl/spoolss.idl'
--- a/source/librpc/idl/spoolss.idl	2007-02-18 11:56:36 +0000
+++ b/source/librpc/idl/spoolss.idl	2007-02-18 12:02:36 +0000
@@ -1126,7 +1126,8 @@
 
 	/******************/
 	/* Function: 0x38 */
-	WERROR spoolss_FindClosePrinterNotify(
+	[public] WERROR spoolss_FindClosePrinterNotify(
+		[in,ref] policy_handle *handle
 	);
 
 	/******************/

=== modified file 'source/torture/ndr/spoolss.c'
--- a/source/torture/ndr/spoolss.c	2007-02-18 12:00:53 +0000
+++ b/source/torture/ndr/spoolss.c	2007-02-18 12:02:36 +0000
@@ -231,6 +231,15 @@
   0x00, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0xea, 0x00, 0x00, 0x00
 };
 
+static const uint8_t FCPN_in_data[] = {
+  0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0xcf, 0xe5, 0x98, 0xfd, 0x15, 0x4b,
+  0xba, 0x28, 0x03, 0x70, 0x74, 0x35, 0x8d, 0x14
+};
+
+static const uint8_t FCPN_out_data[] = {
+  0x00, 0x00, 0x00, 0x00
+};
+
 struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
 {
 	struct torture_suite *suite = torture_suite_create(ctx, "spoolss");
@@ -265,5 +274,8 @@
 	torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_in_data, NDR_IN, NULL );
 	torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_out_data, NDR_OUT, NULL );
 
+	torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_in_data, NDR_IN, NULL );
+	torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_out_data, NDR_OUT, NULL );
+
 	return suite;
 }



More information about the samba-cvs mailing list