diff options
author | Günther Deschner <gd@samba.org> | 2009-03-16 16:53:41 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-03-17 10:53:43 +0100 |
commit | 6df9e1f7aafe6da4b90271dda8d6cf3847a8d39e (patch) | |
tree | 3f2892d59a54a774065a028d991ac5f6010117ba /source3/rpc_client | |
parent | 9a8f19672de6ec00bbd95a1a72e6ef2a79ed7d81 (diff) | |
download | samba-6df9e1f7aafe6da4b90271dda8d6cf3847a8d39e.tar.gz samba-6df9e1f7aafe6da4b90271dda8d6cf3847a8d39e.tar.bz2 samba-6df9e1f7aafe6da4b90271dda8d6cf3847a8d39e.zip |
s3-spoolss: add push_spoolss_PrinterData().
Guenther
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/init_spoolss.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/rpc_client/init_spoolss.c b/source3/rpc_client/init_spoolss.c index ddf0118429..4c105ea3bc 100644 --- a/source3/rpc_client/init_spoolss.c +++ b/source3/rpc_client/init_spoolss.c @@ -58,3 +58,18 @@ WERROR pull_spoolss_PrinterData(TALLOC_CTX *mem_ctx, 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; +} |