diff options
Diffstat (limited to 'source3/rpc_client/cli_spoolss.c')
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index d0781a0e65..bc4a4e78ed 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -23,7 +23,7 @@ */ #include "includes.h" -#include "../librpc/gen_ndr/cli_spoolss.h" +#include "rpc_client.h" /********************************************************************** convencience wrapper around rpccli_spoolss_OpenPrinterEx @@ -76,56 +76,6 @@ WERROR rpccli_spoolss_openprinter_ex(struct rpc_pipe_client *cli, } /********************************************************************** - convencience wrapper around rpccli_spoolss_GetPrinterDriver -**********************************************************************/ - -WERROR rpccli_spoolss_getprinterdriver(struct rpc_pipe_client *cli, - TALLOC_CTX *mem_ctx, - struct policy_handle *handle, - const char *architecture, - uint32_t level, - uint32_t offered, - union spoolss_DriverInfo *info) -{ - NTSTATUS status; - WERROR werror; - uint32_t needed; - DATA_BLOB buffer; - - if (offered > 0) { - buffer = data_blob_talloc_zero(mem_ctx, offered); - W_ERROR_HAVE_NO_MEMORY(buffer.data); - } - - status = rpccli_spoolss_GetPrinterDriver(cli, mem_ctx, - handle, - architecture, - level, - (offered > 0) ? &buffer : NULL, - offered, - info, - &needed, - &werror); - if (W_ERROR_EQUAL(werror, WERR_INSUFFICIENT_BUFFER)) { - offered = needed; - buffer = data_blob_talloc_zero(mem_ctx, needed); - W_ERROR_HAVE_NO_MEMORY(buffer.data); - - status = rpccli_spoolss_GetPrinterDriver(cli, mem_ctx, - handle, - architecture, - level, - &buffer, - offered, - info, - &needed, - &werror); - } - - return werror; -} - -/********************************************************************** convencience wrapper around rpccli_spoolss_GetPrinterDriver2 **********************************************************************/ |