mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3: re-run make samba3-idl.
Guenther
This commit is contained in:
parent
aa576c292f
commit
13995f5212
@ -2540,7 +2540,7 @@ NTSTATUS rpccli_spoolss_GetPrinterDriver2(struct rpc_pipe_client *cli,
|
||||
uint32_t offered /* [in] */,
|
||||
uint32_t client_major_version /* [in] */,
|
||||
uint32_t client_minor_version /* [in] */,
|
||||
DATA_BLOB *info /* [out] [unique] */,
|
||||
union spoolss_DriverInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
|
||||
uint32_t *needed /* [out] [ref] */,
|
||||
uint32_t *server_major_version /* [out] [ref] */,
|
||||
uint32_t *server_minor_version /* [out] [ref] */,
|
||||
|
@ -331,7 +331,7 @@ NTSTATUS rpccli_spoolss_GetPrinterDriver2(struct rpc_pipe_client *cli,
|
||||
uint32_t offered /* [in] */,
|
||||
uint32_t client_major_version /* [in] */,
|
||||
uint32_t client_minor_version /* [in] */,
|
||||
DATA_BLOB *info /* [out] [unique] */,
|
||||
union spoolss_DriverInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
|
||||
uint32_t *needed /* [out] [ref] */,
|
||||
uint32_t *server_major_version /* [out] [ref] */,
|
||||
uint32_t *server_minor_version /* [out] [ref] */,
|
||||
|
@ -20096,7 +20096,13 @@ static enum ndr_err_code ndr_push_spoolss_GetPrinterDriver2(struct ndr_push *ndr
|
||||
if (flags & NDR_OUT) {
|
||||
NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.info));
|
||||
if (r->out.info) {
|
||||
NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, *r->out.info));
|
||||
{
|
||||
struct ndr_push *_ndr_info;
|
||||
NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_info, 4, r->in.offered));
|
||||
NDR_CHECK(ndr_push_set_switch_value(_ndr_info, r->out.info, r->in.level));
|
||||
NDR_CHECK(ndr_push_spoolss_DriverInfo(_ndr_info, NDR_SCALARS|NDR_BUFFERS, r->out.info));
|
||||
NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_info, 4, r->in.offered));
|
||||
}
|
||||
}
|
||||
if (r->out.needed == NULL) {
|
||||
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
|
||||
@ -20188,7 +20194,13 @@ static enum ndr_err_code ndr_pull_spoolss_GetPrinterDriver2(struct ndr_pull *ndr
|
||||
if (r->out.info) {
|
||||
_mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
|
||||
NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, r->out.info));
|
||||
{
|
||||
struct ndr_pull *_ndr_info;
|
||||
NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_info, 4, r->in.offered));
|
||||
NDR_CHECK(ndr_pull_set_switch_value(_ndr_info, r->out.info, r->in.level));
|
||||
NDR_CHECK(ndr_pull_spoolss_DriverInfo(_ndr_info, NDR_SCALARS|NDR_BUFFERS, r->out.info));
|
||||
NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_info, 4, r->in.offered));
|
||||
}
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
|
||||
}
|
||||
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
|
||||
@ -20255,7 +20267,8 @@ _PUBLIC_ void ndr_print_spoolss_GetPrinterDriver2(struct ndr_print *ndr, const c
|
||||
ndr_print_ptr(ndr, "info", r->out.info);
|
||||
ndr->depth++;
|
||||
if (r->out.info) {
|
||||
ndr_print_DATA_BLOB(ndr, "info", *r->out.info);
|
||||
ndr_print_set_switch_value(ndr, r->out.info, r->in.level);
|
||||
ndr_print_spoolss_DriverInfo(ndr, "info", r->out.info);
|
||||
}
|
||||
ndr->depth--;
|
||||
ndr_print_ptr(ndr, "needed", r->out.needed);
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#define PRINTER_ENUM_ICONMASK ( (PRINTER_ENUM_ICON1|PRINTER_ENUM_ICON2|PRINTER_ENUM_ICON3|PRINTER_ENUM_ICON4|PRINTER_ENUM_ICON5|PRINTER_ENUM_ICON6|PRINTER_ENUM_ICON7|PRINTER_ENUM_ICON8) )
|
||||
#define SPOOLSS_ARCHITECTURE_NT_X86 ( "Windows NT x86" )
|
||||
#define SPOOLSS_DEFAULT_SERVER_PATH ( "C:\\WINDOWS\\system32\\spool" )
|
||||
#define PRINTER_CHANGE_PRINTER ( 0x000000FF )
|
||||
#define PRINTER_CHANGE_JOB ( 0x0000FF00 )
|
||||
#define PRINTER_CHANGE_FORM ( (PRINTER_CHANGE_ADD_FORM|PRINTER_CHANGE_SET_FORM|PRINTER_CHANGE_DELETE_FORM) )
|
||||
@ -2282,7 +2283,7 @@ struct spoolss_GetPrinterDriver2 {
|
||||
} in;
|
||||
|
||||
struct {
|
||||
DATA_BLOB *info;/* [unique] */
|
||||
union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
|
||||
uint32_t *needed;/* [ref] */
|
||||
uint32_t *server_major_version;/* [ref] */
|
||||
uint32_t *server_minor_version;/* [ref] */
|
||||
|
@ -4169,7 +4169,7 @@ static bool api_spoolss_GetPrinterDriver2(pipes_struct *p)
|
||||
}
|
||||
|
||||
ZERO_STRUCT(r->out);
|
||||
r->out.info = talloc_zero(r, DATA_BLOB);
|
||||
r->out.info = talloc_zero(r, union spoolss_DriverInfo);
|
||||
if (r->out.info == NULL) {
|
||||
talloc_free(r);
|
||||
return false;
|
||||
@ -8080,7 +8080,7 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
case NDR_SPOOLSS_GETPRINTERDRIVER2: {
|
||||
struct spoolss_GetPrinterDriver2 *r = (struct spoolss_GetPrinterDriver2 *)_r;
|
||||
ZERO_STRUCT(r->out);
|
||||
r->out.info = talloc_zero(mem_ctx, DATA_BLOB);
|
||||
r->out.info = talloc_zero(mem_ctx, union spoolss_DriverInfo);
|
||||
if (r->out.info == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user