summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-16 16:52:37 +0100
committerKarolin Seeger <kseeger@samba.org>2009-04-15 09:06:37 +0200
commit299437206661a4913cd3d27013a19108cd5dba8c (patch)
tree0b5e4c35759c56fedad072356c421556618ea46b /source3/rpc_client
parent92b624faea3c4dfc48d9ed16a37e7e7476f6f620 (diff)
downloadsamba-299437206661a4913cd3d27013a19108cd5dba8c.tar.gz
s3-spoolss: add pull_spoolss_PrinterData().
Guenther (cherry picked from commit 9a8f19672de6ec00bbd95a1a72e6ef2a79ed7d81) (cherry picked from commit 08dfece15d7b071ec03059fff4851f9a91ae2e33)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/init_spoolss.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/rpc_client/init_spoolss.c b/source3/rpc_client/init_spoolss.c
index a6255adf3d8..ddf01184291 100644
--- a/source3/rpc_client/init_spoolss.c
+++ b/source3/rpc_client/init_spoolss.c
@@ -40,3 +40,21 @@ 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;
+}
+