[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1021-gbaeee97

Günther Deschner gd at samba.org
Mon Apr 13 14:14:43 GMT 2009


The branch, master has been updated
       via  baeee974495d1be18c61f74ce49a93cd02eac538 (commit)
       via  63b22a74f69cbc5035e8875d656041b5da975f66 (commit)
      from  97ffd709f85ca0ecd101aac614fea19151394677 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit baeee974495d1be18c61f74ce49a93cd02eac538
Author: Günther Deschner <gd at samba.org>
Date:   Mon Apr 13 16:02:02 2009 +0200

    s3: re-run make samba3-idl.
    
    Guenther

commit 63b22a74f69cbc5035e8875d656041b5da975f66
Author: Günther Deschner <gd at samba.org>
Date:   Mon Apr 13 16:01:30 2009 +0200

    spoolss: add spoolss_DriverAttributes bitmask.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 librpc/gen_ndr/ndr_spoolss.c |   28 +++++++++++++++++++++++++---
 librpc/gen_ndr/ndr_spoolss.h |    1 +
 librpc/gen_ndr/spoolss.h     |    3 +++
 librpc/idl/spoolss.idl       |    8 ++++++--
 4 files changed, 35 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/librpc/gen_ndr/ndr_spoolss.c b/librpc/gen_ndr/ndr_spoolss.c
index 2085fa3..d4195e4 100644
--- a/librpc/gen_ndr/ndr_spoolss.c
+++ b/librpc/gen_ndr/ndr_spoolss.c
@@ -8372,6 +8372,28 @@ _PUBLIC_ void ndr_print_spoolss_AddDriverInfo4(struct ndr_print *ndr, const char
 	ndr->depth--;
 }
 
+static enum ndr_err_code ndr_push_spoolss_DriverAttributes(struct ndr_push *ndr, int ndr_flags, uint32_t r)
+{
+	NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
+	return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_spoolss_DriverAttributes(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
+{
+	uint32_t v;
+	NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
+	*r = v;
+	return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_spoolss_DriverAttributes(struct ndr_print *ndr, const char *name, uint32_t r)
+{
+	ndr_print_uint32(ndr, name, r);
+	ndr->depth++;
+	ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "PRINTER_DRIVER_PACKAGE_AWARE", PRINTER_DRIVER_PACKAGE_AWARE, r);
+	ndr->depth--;
+}
+
 static enum ndr_err_code ndr_push_spoolss_AddDriverInfo6(struct ndr_push *ndr, int ndr_flags, const struct spoolss_AddDriverInfo6 *r)
 {
 	if (ndr_flags & NDR_SCALARS) {
@@ -11255,7 +11277,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_spoolss_DriverInfo5(struct ndr_push *ndr, in
 			NDR_CHECK(ndr_push_relative_ptr1(ndr, r->config_file));
 			ndr->flags = _flags_save_string;
 		}
-		NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->driver_attributes));
+		NDR_CHECK(ndr_push_spoolss_DriverAttributes(ndr, NDR_SCALARS, r->driver_attributes));
 		NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->config_version));
 		NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->driver_version));
 	}
@@ -11384,7 +11406,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_spoolss_DriverInfo5(struct ndr_pull *ndr, in
 			}
 			ndr->flags = _flags_save_string;
 		}
-		NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->driver_attributes));
+		NDR_CHECK(ndr_pull_spoolss_DriverAttributes(ndr, NDR_SCALARS, &r->driver_attributes));
 		NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->config_version));
 		NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->driver_version));
 	}
@@ -11503,7 +11525,7 @@ _PUBLIC_ void ndr_print_spoolss_DriverInfo5(struct ndr_print *ndr, const char *n
 		ndr_print_string(ndr, "config_file", r->config_file);
 	}
 	ndr->depth--;
-	ndr_print_uint32(ndr, "driver_attributes", r->driver_attributes);
+	ndr_print_spoolss_DriverAttributes(ndr, "driver_attributes", r->driver_attributes);
 	ndr_print_uint32(ndr, "config_version", r->config_version);
 	ndr_print_uint32(ndr, "driver_version", r->driver_version);
 	ndr->depth--;
diff --git a/librpc/gen_ndr/ndr_spoolss.h b/librpc/gen_ndr/ndr_spoolss.h
index 0feb4a2..204aad8 100644
--- a/librpc/gen_ndr/ndr_spoolss.h
+++ b/librpc/gen_ndr/ndr_spoolss.h
@@ -310,6 +310,7 @@ void ndr_print_spoolss_DriverOSVersion(struct ndr_print *ndr, const char *name,
 void ndr_print_spoolss_AddDriverInfo2(struct ndr_print *ndr, const char *name, const struct spoolss_AddDriverInfo2 *r);
 void ndr_print_spoolss_AddDriverInfo3(struct ndr_print *ndr, const char *name, const struct spoolss_AddDriverInfo3 *r);
 void ndr_print_spoolss_AddDriverInfo4(struct ndr_print *ndr, const char *name, const struct spoolss_AddDriverInfo4 *r);
+void ndr_print_spoolss_DriverAttributes(struct ndr_print *ndr, const char *name, uint32_t r);
 void ndr_print_spoolss_AddDriverInfo6(struct ndr_print *ndr, const char *name, const struct spoolss_AddDriverInfo6 *r);
 void ndr_print_spoolss_AddDriverInfo8(struct ndr_print *ndr, const char *name, const struct spoolss_AddDriverInfo8 *r);
 void ndr_print_spoolss_AddDriverInfo(struct ndr_print *ndr, const char *name, const union spoolss_AddDriverInfo *r);
diff --git a/librpc/gen_ndr/spoolss.h b/librpc/gen_ndr/spoolss.h
index f9f34cb..abd8300 100644
--- a/librpc/gen_ndr/spoolss.h
+++ b/librpc/gen_ndr/spoolss.h
@@ -775,6 +775,9 @@ struct spoolss_AddDriverInfo4 {
 	struct spoolss_StringArray *previous_names;/* [unique] */
 };
 
+/* bitmap spoolss_DriverAttributes */
+#define PRINTER_DRIVER_PACKAGE_AWARE ( 0x00000002 )
+
 struct spoolss_AddDriverInfo5 {
 	enum spoolss_DriverOSVersion version;
 	const char *driver_name;/* [unique,charset(UTF16)] */
diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl
index 9876057..5b9f551 100644
--- a/librpc/idl/spoolss.idl
+++ b/librpc/idl/spoolss.idl
@@ -836,6 +836,10 @@ import "misc.idl", "security.idl", "winreg.idl";
 		spoolss_StringArray *previous_names;
 	} spoolss_AddDriverInfo4;
 
+	typedef [bitmap32bit] bitmap {
+		PRINTER_DRIVER_PACKAGE_AWARE = 0x00000002
+	} spoolss_DriverAttributes;
+
 	typedef struct {
 		spoolss_DriverOSVersion version;
 		[string,charset(UTF16)] uint16 *driver_name;
@@ -843,7 +847,7 @@ import "misc.idl", "security.idl", "winreg.idl";
 		[string,charset(UTF16)] uint16 *driver_path;
 		[string,charset(UTF16)] uint16 *data_file;
 		[string,charset(UTF16)] uint16 *config_file;
-		uint32 driver_attributes;
+		spoolss_DriverAttributes driver_attributes;
 		uint32 config_version;
 		uint32 driver_version;
 	} spoolss_AddDriverInfo5;
@@ -968,7 +972,7 @@ import "misc.idl", "security.idl", "winreg.idl";
 		[relative] nstring *driver_path;
 		[relative] nstring *data_file;
 		[relative] nstring *config_file;
-		uint32 driver_attributes;
+		spoolss_DriverAttributes driver_attributes;
 		uint32 config_version;
 		uint32 driver_version;
 	} spoolss_DriverInfo5;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list