1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Re-run make idl.

Guenther
This commit is contained in:
Günther Deschner 2008-02-12 09:54:11 +01:00
parent 676bd28f87
commit 82993e9cd4
5 changed files with 35 additions and 14 deletions

View File

@ -679,8 +679,8 @@ NTSTATUS rpccli_samr_EnumDomainAliases(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle, struct policy_handle *domain_handle,
uint32_t *resume_handle, uint32_t *resume_handle,
uint32_t acct_flags, struct samr_SamArray **sam,
struct samr_SamArray *sam, uint32_t max_size,
uint32_t *num_entries) uint32_t *num_entries)
{ {
struct samr_EnumDomainAliases r; struct samr_EnumDomainAliases r;
@ -689,7 +689,7 @@ NTSTATUS rpccli_samr_EnumDomainAliases(struct rpc_pipe_client *cli,
/* In parameters */ /* In parameters */
r.in.domain_handle = domain_handle; r.in.domain_handle = domain_handle;
r.in.resume_handle = resume_handle; r.in.resume_handle = resume_handle;
r.in.acct_flags = acct_flags; r.in.max_size = max_size;
if (DEBUGLEVEL >= 10) { if (DEBUGLEVEL >= 10) {
NDR_PRINT_IN_DEBUG(samr_EnumDomainAliases, &r); NDR_PRINT_IN_DEBUG(samr_EnumDomainAliases, &r);

View File

@ -90,8 +90,8 @@ NTSTATUS rpccli_samr_EnumDomainAliases(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, TALLOC_CTX *mem_ctx,
struct policy_handle *domain_handle, struct policy_handle *domain_handle,
uint32_t *resume_handle, uint32_t *resume_handle,
uint32_t acct_flags, struct samr_SamArray **sam,
struct samr_SamArray *sam, uint32_t max_size,
uint32_t *num_entries); uint32_t *num_entries);
NTSTATUS rpccli_samr_GetAliasMembership(struct rpc_pipe_client *cli, NTSTATUS rpccli_samr_GetAliasMembership(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, TALLOC_CTX *mem_ctx,

View File

@ -6858,7 +6858,7 @@ static enum ndr_err_code ndr_push_samr_EnumDomainAliases(struct ndr_push *ndr, i
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer"); return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
} }
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle)); NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.resume_handle));
NDR_CHECK(ndr_push_samr_AcctFlags(ndr, NDR_SCALARS, r->in.acct_flags)); NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.max_size));
} }
if (flags & NDR_OUT) { if (flags & NDR_OUT) {
if (r->out.resume_handle == NULL) { if (r->out.resume_handle == NULL) {
@ -6868,7 +6868,10 @@ static enum ndr_err_code ndr_push_samr_EnumDomainAliases(struct ndr_push *ndr, i
if (r->out.sam == NULL) { if (r->out.sam == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer"); return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
} }
NDR_CHECK(ndr_push_samr_SamArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sam)); NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.sam));
if (*r->out.sam) {
NDR_CHECK(ndr_push_samr_SamArray(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.sam));
}
if (r->out.num_entries == NULL) { if (r->out.num_entries == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer"); return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
} }
@ -6880,9 +6883,11 @@ static enum ndr_err_code ndr_push_samr_EnumDomainAliases(struct ndr_push *ndr, i
static enum ndr_err_code ndr_pull_samr_EnumDomainAliases(struct ndr_pull *ndr, int flags, struct samr_EnumDomainAliases *r) static enum ndr_err_code ndr_pull_samr_EnumDomainAliases(struct ndr_pull *ndr, int flags, struct samr_EnumDomainAliases *r)
{ {
uint32_t _ptr_sam;
TALLOC_CTX *_mem_save_domain_handle_0; TALLOC_CTX *_mem_save_domain_handle_0;
TALLOC_CTX *_mem_save_resume_handle_0; TALLOC_CTX *_mem_save_resume_handle_0;
TALLOC_CTX *_mem_save_sam_0; TALLOC_CTX *_mem_save_sam_0;
TALLOC_CTX *_mem_save_sam_1;
TALLOC_CTX *_mem_save_num_entries_0; TALLOC_CTX *_mem_save_num_entries_0;
if (flags & NDR_IN) { if (flags & NDR_IN) {
ZERO_STRUCT(r->out); ZERO_STRUCT(r->out);
@ -6901,7 +6906,7 @@ static enum ndr_err_code ndr_pull_samr_EnumDomainAliases(struct ndr_pull *ndr, i
NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC); NDR_PULL_SET_MEM_CTX(ndr, r->in.resume_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.resume_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_resume_handle_0, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_samr_AcctFlags(ndr, NDR_SCALARS, &r->in.acct_flags)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.max_size));
NDR_PULL_ALLOC(ndr, r->out.resume_handle); NDR_PULL_ALLOC(ndr, r->out.resume_handle);
*r->out.resume_handle = *r->in.resume_handle; *r->out.resume_handle = *r->in.resume_handle;
NDR_PULL_ALLOC(ndr, r->out.sam); NDR_PULL_ALLOC(ndr, r->out.sam);
@ -6922,7 +6927,18 @@ static enum ndr_err_code ndr_pull_samr_EnumDomainAliases(struct ndr_pull *ndr, i
} }
_mem_save_sam_0 = NDR_PULL_GET_MEM_CTX(ndr); _mem_save_sam_0 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->out.sam, LIBNDR_FLAG_REF_ALLOC); NDR_PULL_SET_MEM_CTX(ndr, r->out.sam, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_samr_SamArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.sam)); NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sam));
if (_ptr_sam) {
NDR_PULL_ALLOC(ndr, *r->out.sam);
} else {
*r->out.sam = NULL;
}
if (*r->out.sam) {
_mem_save_sam_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, *r->out.sam, 0);
NDR_CHECK(ndr_pull_samr_SamArray(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.sam));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sam_1, 0);
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sam_0, LIBNDR_FLAG_REF_ALLOC); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sam_0, LIBNDR_FLAG_REF_ALLOC);
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) { if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->out.num_entries); NDR_PULL_ALLOC(ndr, r->out.num_entries);
@ -6954,7 +6970,7 @@ _PUBLIC_ void ndr_print_samr_EnumDomainAliases(struct ndr_print *ndr, const char
ndr->depth++; ndr->depth++;
ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
ndr->depth--; ndr->depth--;
ndr_print_samr_AcctFlags(ndr, "acct_flags", r->in.acct_flags); ndr_print_uint32(ndr, "max_size", r->in.max_size);
ndr->depth--; ndr->depth--;
} }
if (flags & NDR_OUT) { if (flags & NDR_OUT) {
@ -6966,7 +6982,12 @@ _PUBLIC_ void ndr_print_samr_EnumDomainAliases(struct ndr_print *ndr, const char
ndr->depth--; ndr->depth--;
ndr_print_ptr(ndr, "sam", r->out.sam); ndr_print_ptr(ndr, "sam", r->out.sam);
ndr->depth++; ndr->depth++;
ndr_print_samr_SamArray(ndr, "sam", r->out.sam); ndr_print_ptr(ndr, "sam", *r->out.sam);
ndr->depth++;
if (*r->out.sam) {
ndr_print_samr_SamArray(ndr, "sam", *r->out.sam);
}
ndr->depth--;
ndr->depth--; ndr->depth--;
ndr_print_ptr(ndr, "num_entries", r->out.num_entries); ndr_print_ptr(ndr, "num_entries", r->out.num_entries);
ndr->depth++; ndr->depth++;

View File

@ -975,12 +975,12 @@ struct samr_CreateDomAlias {
struct samr_EnumDomainAliases { struct samr_EnumDomainAliases {
struct { struct {
struct policy_handle *domain_handle;/* [ref] */ struct policy_handle *domain_handle;/* [ref] */
uint32_t acct_flags; uint32_t max_size;
uint32_t *resume_handle;/* [ref] */ uint32_t *resume_handle;/* [ref] */
} in; } in;
struct { struct {
struct samr_SamArray *sam;/* [ref] */ struct samr_SamArray **sam;/* [ref] */
uint32_t *num_entries;/* [ref] */ uint32_t *num_entries;/* [ref] */
uint32_t *resume_handle;/* [ref] */ uint32_t *resume_handle;/* [ref] */
NTSTATUS result; NTSTATUS result;

View File

@ -1259,7 +1259,7 @@ static bool api_samr_EnumDomainAliases(pipes_struct *p)
ZERO_STRUCT(r->out); ZERO_STRUCT(r->out);
r->out.resume_handle = r->in.resume_handle; r->out.resume_handle = r->in.resume_handle;
r->out.sam = talloc_zero(r, struct samr_SamArray); r->out.sam = talloc_zero(r, struct samr_SamArray *);
if (r->out.sam == NULL) { if (r->out.sam == NULL) {
talloc_free(r); talloc_free(r);
return false; return false;