[SCM] Samba Shared Repository - branch v3-4-test updated -
release-4-0-0alpha7-376-ga4063f8
Günther Deschner
gd at samba.org
Tue Mar 17 09:55:08 GMT 2009
The branch, v3-4-test has been updated
via a4063f80803d0751895baced8a3f4ef03431b2a1 (commit)
via 08dfece15d7b071ec03059fff4851f9a91ae2e33 (commit)
from c33d62ca2aa6c470c3dce68920ba0e7f9cdb59b3 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test
- Log -----------------------------------------------------------------
commit a4063f80803d0751895baced8a3f4ef03431b2a1
Author: Günther Deschner <gd at samba.org>
Date: Mon Mar 16 16:53:41 2009 +0100
s3-spoolss: add push_spoolss_PrinterData().
Guenther
(cherry picked from commit 6df9e1f7aafe6da4b90271dda8d6cf3847a8d39e)
commit 08dfece15d7b071ec03059fff4851f9a91ae2e33
Author: Günther Deschner <gd at samba.org>
Date: Mon Mar 16 16:52:37 2009 +0100
s3-spoolss: add pull_spoolss_PrinterData().
Guenther
(cherry picked from commit 9a8f19672de6ec00bbd95a1a72e6ef2a79ed7d81)
-----------------------------------------------------------------------
Summary of changes:
source3/include/proto.h | 7 +++++++
source3/rpc_client/init_spoolss.c | 33 +++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9db9c40..efafcc1 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5554,6 +5554,13 @@ WERROR rpccli_spoolss_enumprinterkey(struct rpc_pipe_client *cli, TALLOC_CTX *me
bool init_systemtime(struct spoolss_Time *r,
struct tm *unixtime);
+WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
+ const DATA_BLOB *blob,
+ union spoolss_PrinterData *data,
+ enum winreg_Type type);
+WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
+ enum winreg_Type type,
+ union spoolss_PrinterData *data);
/* The following definitions come from rpc_client/init_lsa.c */
diff --git a/source3/rpc_client/init_spoolss.c b/source3/rpc_client/init_spoolss.c
index a6255ad..4c105ea 100644
--- a/source3/rpc_client/init_spoolss.c
+++ b/source3/rpc_client/init_spoolss.c
@@ -40,3 +40,36 @@ bool init_systemtime(struct spoolss_Time *r,
return true;
}
+
+/*******************************************************************
+ ********************************************************************/
+
+WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx,
+ const DATA_BLOB *blob,
+ union spoolss_PrinterData *data,
+ enum winreg_Type type)
+{
+ enum ndr_err_code ndr_err;
+ ndr_err = ndr_pull_union_blob(blob, mem_ctx, NULL, data, type,
+ (ndr_pull_flags_fn_t)ndr_pull_spoolss_PrinterData);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ return WERR_GENERAL_FAILURE;
+ }
+ return WERR_OK;
+}
+
+/*******************************************************************
+ ********************************************************************/
+
+WERROR push_spoolss_PrinterData(TALLOC_CTX *mem_ctx, DATA_BLOB *blob,
+ enum winreg_Type type,
+ union spoolss_PrinterData *data)
+{
+ enum ndr_err_code ndr_err;
+ ndr_err = ndr_push_union_blob(blob, mem_ctx, NULL, data, type,
+ (ndr_push_flags_fn_t)ndr_push_spoolss_PrinterData);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ return WERR_GENERAL_FAILURE;
+ }
+ return WERR_OK;
+}
--
Samba Shared Repository
More information about the samba-cvs
mailing list