summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-10 20:50:53 +0200
committerGünther Deschner <gd@samba.org>2008-06-11 10:46:46 +0200
commit79fbc59cfc17327ecde5f4621f8e44d042becfab (patch)
tree28cd12be5e81c5d20771a747c59a81f906dfcf41 /source3/librpc/gen_ndr
parent2d5e4708e97d552d48d45d5ef04082a53ffed460 (diff)
downloadsamba-79fbc59cfc17327ecde5f4621f8e44d042becfab.tar.gz
samba-79fbc59cfc17327ecde5f4621f8e44d042becfab.tar.bz2
samba-79fbc59cfc17327ecde5f4621f8e44d042becfab.zip
re-run make idl.
Guenther (This used to be commit 3a73fe564f07ef057bfc3b61367acf940067269d)
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r--source3/librpc/gen_ndr/cli_drsuapi.c9
-rw-r--r--source3/librpc/gen_ndr/cli_drsuapi.h7
-rw-r--r--source3/librpc/gen_ndr/drsuapi.h8
-rw-r--r--source3/librpc/gen_ndr/ndr_drsuapi.c54
4 files changed, 34 insertions, 44 deletions
diff --git a/source3/librpc/gen_ndr/cli_drsuapi.c b/source3/librpc/gen_ndr/cli_drsuapi.c
index 3e2605ae61..0731885a1a 100644
--- a/source3/librpc/gen_ndr/cli_drsuapi.c
+++ b/source3/librpc/gen_ndr/cli_drsuapi.c
@@ -153,9 +153,10 @@ NTSTATUS rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client *cli,
NTSTATUS rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *bind_handle /* [in] [ref] */,
- int32_t *level /* [in,out] [ref] */,
- union drsuapi_DsGetNCChangesRequest *req /* [in] [ref,switch_is(*level)] */,
- union drsuapi_DsGetNCChangesCtr *ctr /* [out] [ref,switch_is(*level)] */,
+ int32_t level /* [in] */,
+ union drsuapi_DsGetNCChangesRequest *req /* [in] [ref,switch_is(level)] */,
+ int32_t *level_out /* [out] [ref] */,
+ union drsuapi_DsGetNCChangesCtr *ctr /* [out] [ref,switch_is(*level_out)] */,
WERROR *werror)
{
struct drsuapi_DsGetNCChanges r;
@@ -190,7 +191,7 @@ NTSTATUS rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client *cli,
}
/* Return variables */
- *level = *r.out.level;
+ *level_out = *r.out.level_out;
*ctr = *r.out.ctr;
/* Return result */
diff --git a/source3/librpc/gen_ndr/cli_drsuapi.h b/source3/librpc/gen_ndr/cli_drsuapi.h
index a41cded3df..ab7375f4ca 100644
--- a/source3/librpc/gen_ndr/cli_drsuapi.h
+++ b/source3/librpc/gen_ndr/cli_drsuapi.h
@@ -20,9 +20,10 @@ NTSTATUS rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client *cli,
NTSTATUS rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
struct policy_handle *bind_handle /* [in] [ref] */,
- int32_t *level /* [in,out] [ref] */,
- union drsuapi_DsGetNCChangesRequest *req /* [in] [ref,switch_is(*level)] */,
- union drsuapi_DsGetNCChangesCtr *ctr /* [out] [ref,switch_is(*level)] */,
+ int32_t level /* [in] */,
+ union drsuapi_DsGetNCChangesRequest *req /* [in] [ref,switch_is(level)] */,
+ int32_t *level_out /* [out] [ref] */,
+ union drsuapi_DsGetNCChangesCtr *ctr /* [out] [ref,switch_is(*level_out)] */,
WERROR *werror);
NTSTATUS rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
diff --git a/source3/librpc/gen_ndr/drsuapi.h b/source3/librpc/gen_ndr/drsuapi.h
index 628131e457..35769f76e6 100644
--- a/source3/librpc/gen_ndr/drsuapi.h
+++ b/source3/librpc/gen_ndr/drsuapi.h
@@ -1375,13 +1375,13 @@ struct drsuapi_DsReplicaSync {
struct drsuapi_DsGetNCChanges {
struct {
struct policy_handle *bind_handle;/* [ref] */
- union drsuapi_DsGetNCChangesRequest *req;/* [ref,switch_is(*level)] */
- int32_t *level;/* [ref] */
+ int32_t level;
+ union drsuapi_DsGetNCChangesRequest *req;/* [ref,switch_is(level)] */
} in;
struct {
- union drsuapi_DsGetNCChangesCtr *ctr;/* [ref,switch_is(*level)] */
- int32_t *level;/* [ref] */
+ int32_t *level_out;/* [ref] */
+ union drsuapi_DsGetNCChangesCtr *ctr;/* [ref,switch_is(*level_out)] */
WERROR result;
} out;
diff --git a/source3/librpc/gen_ndr/ndr_drsuapi.c b/source3/librpc/gen_ndr/ndr_drsuapi.c
index 7a76cfe19e..ce8fbf2e66 100644
--- a/source3/librpc/gen_ndr/ndr_drsuapi.c
+++ b/source3/librpc/gen_ndr/ndr_drsuapi.c
@@ -12226,25 +12226,22 @@ static enum ndr_err_code ndr_push_drsuapi_DsGetNCChanges(struct ndr_push *ndr, i
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.bind_handle));
- if (r->in.level == NULL) {
- return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
- }
- NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->in.level));
+ NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.level));
if (r->in.req == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
- NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.req, *r->in.level));
+ NDR_CHECK(ndr_push_set_switch_value(ndr, r->in.req, r->in.level));
NDR_CHECK(ndr_push_drsuapi_DsGetNCChangesRequest(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.req));
}
if (flags & NDR_OUT) {
- if (r->out.level == NULL) {
+ if (r->out.level_out == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
- NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.level));
+ NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.level_out));
if (r->out.ctr == NULL) {
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
}
- NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.ctr, *r->out.level));
+ NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.ctr, *r->out.level_out));
NDR_CHECK(ndr_push_drsuapi_DsGetNCChangesCtr(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ctr));
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
}
@@ -12254,8 +12251,8 @@ static enum ndr_err_code ndr_push_drsuapi_DsGetNCChanges(struct ndr_push *ndr, i
static enum ndr_err_code ndr_pull_drsuapi_DsGetNCChanges(struct ndr_pull *ndr, int flags, struct drsuapi_DsGetNCChanges *r)
{
TALLOC_CTX *_mem_save_bind_handle_0;
- TALLOC_CTX *_mem_save_level_0;
TALLOC_CTX *_mem_save_req_0;
+ TALLOC_CTX *_mem_save_level_out_0;
TALLOC_CTX *_mem_save_ctr_0;
if (flags & NDR_IN) {
ZERO_STRUCT(r->out);
@@ -12267,40 +12264,34 @@ static enum ndr_err_code ndr_pull_drsuapi_DsGetNCChanges(struct ndr_pull *ndr, i
NDR_PULL_SET_MEM_CTX(ndr, r->in.bind_handle, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.bind_handle));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_bind_handle_0, LIBNDR_FLAG_REF_ALLOC);
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->in.level);
- }
- _mem_save_level_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.level, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->in.level));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_level_0, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.level));
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->in.req);
}
_mem_save_req_0 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->in.req, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.req, *r->in.level));
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, r->in.req, r->in.level));
NDR_CHECK(ndr_pull_drsuapi_DsGetNCChangesRequest(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.req));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_req_0, LIBNDR_FLAG_REF_ALLOC);
- NDR_PULL_ALLOC(ndr, r->out.level);
- *r->out.level = *r->in.level;
+ NDR_PULL_ALLOC(ndr, r->out.level_out);
+ ZERO_STRUCTP(r->out.level_out);
NDR_PULL_ALLOC(ndr, r->out.ctr);
ZERO_STRUCTP(r->out.ctr);
}
if (flags & NDR_OUT) {
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->out.level);
+ NDR_PULL_ALLOC(ndr, r->out.level_out);
}
- _mem_save_level_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.level, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.level));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_level_0, LIBNDR_FLAG_REF_ALLOC);
+ _mem_save_level_out_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.level_out, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.level_out));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_level_out_0, LIBNDR_FLAG_REF_ALLOC);
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC(ndr, r->out.ctr);
}
_mem_save_ctr_0 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->out.ctr, LIBNDR_FLAG_REF_ALLOC);
- NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.ctr, *r->out.level));
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.ctr, *r->out.level_out));
NDR_CHECK(ndr_pull_drsuapi_DsGetNCChangesCtr(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ctr));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ctr_0, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
@@ -12322,13 +12313,10 @@ _PUBLIC_ void ndr_print_drsuapi_DsGetNCChanges(struct ndr_print *ndr, const char
ndr->depth++;
ndr_print_policy_handle(ndr, "bind_handle", r->in.bind_handle);
ndr->depth--;
- ndr_print_ptr(ndr, "level", r->in.level);
- ndr->depth++;
- ndr_print_int32(ndr, "level", *r->in.level);
- ndr->depth--;
+ ndr_print_int32(ndr, "level", r->in.level);
ndr_print_ptr(ndr, "req", r->in.req);
ndr->depth++;
- ndr_print_set_switch_value(ndr, r->in.req, *r->in.level);
+ ndr_print_set_switch_value(ndr, r->in.req, r->in.level);
ndr_print_drsuapi_DsGetNCChangesRequest(ndr, "req", r->in.req);
ndr->depth--;
ndr->depth--;
@@ -12336,13 +12324,13 @@ _PUBLIC_ void ndr_print_drsuapi_DsGetNCChanges(struct ndr_print *ndr, const char
if (flags & NDR_OUT) {
ndr_print_struct(ndr, "out", "drsuapi_DsGetNCChanges");
ndr->depth++;
- ndr_print_ptr(ndr, "level", r->out.level);
+ ndr_print_ptr(ndr, "level_out", r->out.level_out);
ndr->depth++;
- ndr_print_int32(ndr, "level", *r->out.level);
+ ndr_print_int32(ndr, "level_out", *r->out.level_out);
ndr->depth--;
ndr_print_ptr(ndr, "ctr", r->out.ctr);
ndr->depth++;
- ndr_print_set_switch_value(ndr, r->out.ctr, *r->out.level);
+ ndr_print_set_switch_value(ndr, r->out.ctr, *r->out.level_out);
ndr_print_drsuapi_DsGetNCChangesCtr(ndr, "ctr", r->out.ctr);
ndr->depth--;
ndr_print_WERROR(ndr, "result", r->out.result);