1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-07 00:58:40 +03:00

Re-run make idl.

Guenther
(This used to be commit 03101f253f140c9bb26eab3c940504f128278495)
This commit is contained in:
Günther Deschner 2008-02-07 10:02:17 +01:00
parent 1566423f09
commit 8a62c14905
5 changed files with 31 additions and 10 deletions

View File

@ -1250,7 +1250,7 @@ NTSTATUS rpccli_samr_QueryAliasInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *alias_handle,
enum samr_AliasInfoEnum level,
union samr_AliasInfo *info)
union samr_AliasInfo **info)
{
struct samr_QueryAliasInfo r;
NTSTATUS status;

View File

@ -159,7 +159,7 @@ NTSTATUS rpccli_samr_QueryAliasInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *alias_handle,
enum samr_AliasInfoEnum level,
union samr_AliasInfo *info);
union samr_AliasInfo **info);
NTSTATUS rpccli_samr_SetAliasInfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *alias_handle,

View File

@ -7944,8 +7944,11 @@ static enum ndr_err_code ndr_push_samr_QueryAliasInfo(struct ndr_push *ndr, int
if (r->out.info == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.info, r->in.level));
NDR_CHECK(ndr_push_samr_AliasInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.info));
if (*r->out.info) {
NDR_CHECK(ndr_push_set_switch_value(ndr, *r->out.info, r->in.level));
NDR_CHECK(ndr_push_samr_AliasInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
}
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
}
return NDR_ERR_SUCCESS;
@ -7953,8 +7956,10 @@ static enum ndr_err_code ndr_push_samr_QueryAliasInfo(struct ndr_push *ndr, int
static enum ndr_err_code ndr_pull_samr_QueryAliasInfo(struct ndr_pull *ndr, int flags, struct samr_QueryAliasInfo *r)
{
uint32_t _ptr_info;
TALLOC_CTX *_mem_save_alias_handle_0;
TALLOC_CTX *_mem_save_info_0;
TALLOC_CTX *_mem_save_info_1;
if (flags & NDR_IN) {
ZERO_STRUCT(r->out);
@ -7975,8 +7980,19 @@ static enum ndr_err_code ndr_pull_samr_QueryAliasInfo(struct ndr_pull *ndr, int
}
_mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.info, r->in.level));
NDR_CHECK(ndr_pull_samr_AliasInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
if (_ptr_info) {
NDR_PULL_ALLOC(ndr, *r->out.info);
} else {
*r->out.info = NULL;
}
if (*r->out.info) {
_mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, *r->out.info, 0);
NDR_CHECK(ndr_pull_set_switch_value(ndr, *r->out.info, r->in.level));
NDR_CHECK(ndr_pull_samr_AliasInfo(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.info));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
}
@ -8005,8 +8021,13 @@ _PUBLIC_ void ndr_print_samr_QueryAliasInfo(struct ndr_print *ndr, const char *n
ndr->depth++;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
ndr_print_set_switch_value(ndr, r->out.info, r->in.level);
ndr_print_samr_AliasInfo(ndr, "info", r->out.info);
ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
if (*r->out.info) {
ndr_print_set_switch_value(ndr, *r->out.info, r->in.level);
ndr_print_samr_AliasInfo(ndr, "info", *r->out.info);
}
ndr->depth--;
ndr->depth--;
ndr_print_NTSTATUS(ndr, "result", r->out.result);
ndr->depth--;

View File

@ -1159,7 +1159,7 @@ struct samr_QueryAliasInfo {
} in;
struct {
union samr_AliasInfo *info;/* [ref,switch_is(level)] */
union samr_AliasInfo **info;/* [ref,switch_is(level)] */
NTSTATUS result;
} out;

View File

@ -2284,7 +2284,7 @@ static bool api_samr_QueryAliasInfo(pipes_struct *p)
}
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(r, union samr_AliasInfo);
r->out.info = talloc_zero(r, union samr_AliasInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;