diff options
author | Günther Deschner <gd@samba.org> | 2009-02-12 22:07:30 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-12 22:51:29 +0100 |
commit | 41f17a1fc21ba806a16c7e15061b570abcabb870 (patch) | |
tree | 0a9c13f67a16187c05a434ca1157933036915ca2 /source3/rpc_client | |
parent | 30e18aadc3710116c74c47563c6476d520685cfc (diff) | |
download | samba-41f17a1fc21ba806a16c7e15061b570abcabb870.tar.gz samba-41f17a1fc21ba806a16c7e15061b570abcabb870.tar.bz2 samba-41f17a1fc21ba806a16c7e15061b570abcabb870.zip |
s3-spoolss: remove old spoolss_GetPrinterDataEx.
Guenther
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index b635bc7888..5074042822 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -1368,63 +1368,6 @@ WERROR rpccli_spoolss_getprinterdata(struct rpc_pipe_client *cli, TALLOC_CTX *me /********************************************************************** **********************************************************************/ -WERROR rpccli_spoolss_getprinterdataex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *hnd, const char *keyname, - const char *valuename, - REGISTRY_VALUE *value) -{ - prs_struct qbuf, rbuf; - SPOOL_Q_GETPRINTERDATAEX in; - SPOOL_R_GETPRINTERDATAEX out; - uint32 offered = 0; - - ZERO_STRUCT(in); - ZERO_STRUCT(out); - - make_spoolss_q_getprinterdataex( &in, hnd, keyname, valuename, offered ); - - CLI_DO_RPC_WERR( cli, mem_ctx, &syntax_spoolss, SPOOLSS_GETPRINTERDATAEX, - in, out, - qbuf, rbuf, - spoolss_io_q_getprinterdataex, - spoolss_io_r_getprinterdataex, - WERR_GENERAL_FAILURE ); - - if ( W_ERROR_EQUAL( out.status, WERR_MORE_DATA ) ) { - offered = out.needed; - - ZERO_STRUCT(in); - ZERO_STRUCT(out); - - make_spoolss_q_getprinterdataex( &in, hnd, keyname, valuename, offered ); - - CLI_DO_RPC_WERR( cli, mem_ctx, &syntax_spoolss, SPOOLSS_GETPRINTERDATAEX, - in, out, - qbuf, rbuf, - spoolss_io_q_getprinterdataex, - spoolss_io_r_getprinterdataex, - WERR_GENERAL_FAILURE ); - } - - if (!W_ERROR_IS_OK(out.status)) - return out.status; - - /* Return output parameters */ - - if (out.needed) { - value->data_p = (uint8 *)TALLOC_MEMDUP(mem_ctx, out.data, out.needed); - } else { - value->data_p = NULL; - } - value->type = out.type; - value->size = out.needed; - - return out.status; -} - -/********************************************************************** -**********************************************************************/ - WERROR rpccli_spoolss_setprinterdata(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, POLICY_HND *hnd, REGISTRY_VALUE *value) { |