diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-05 19:26:45 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-03-05 19:26:45 +0000 |
commit | 1864c441514a27b285fa4749a62bff1c7c433fe5 (patch) | |
tree | e12ae176da98082c124a8f0dad1dbd83ca084b79 /source/librpc/ndr | |
parent | a6f036a543d0e9fc70a97b7f04a7ad408387cd5f (diff) | |
download | samba-1864c441514a27b285fa4749a62bff1c7c433fe5.tar.gz samba-1864c441514a27b285fa4749a62bff1c7c433fe5.tar.xz samba-1864c441514a27b285fa4749a62bff1c7c433fe5.zip |
r5663: Revert some changes I didn't mean to commit...
Diffstat (limited to 'source/librpc/ndr')
-rw-r--r-- | source/librpc/ndr/libndr.h | 2 | ||||
-rw-r--r-- | source/librpc/ndr/ndr.c | 26 | ||||
-rw-r--r-- | source/librpc/ndr/ndr_spoolss_buf.c | 6 |
3 files changed, 2 insertions, 32 deletions
diff --git a/source/librpc/ndr/libndr.h b/source/librpc/ndr/libndr.h index e2ac4279f1d..4880df43bdf 100644 --- a/source/librpc/ndr/libndr.h +++ b/source/librpc/ndr/libndr.h @@ -49,7 +49,6 @@ struct ndr_pull { struct ndr_token_list *relative_list; struct ndr_token_list *array_size_list; struct ndr_token_list *array_length_list; - struct ndr_token_list *switch_list; /* this is used to ensure we generate unique reference IDs between request and reply */ @@ -69,7 +68,6 @@ struct ndr_push { uint32_t alloc_size; uint32_t offset; - struct ndr_token_list *switch_list; struct ndr_token_list *relative_list; /* this is used to ensure we generate unique reference IDs */ diff --git a/source/librpc/ndr/ndr.c b/source/librpc/ndr/ndr.c index 2e350aa0da7..549230bb29c 100644 --- a/source/librpc/ndr/ndr.c +++ b/source/librpc/ndr/ndr.c @@ -642,32 +642,6 @@ NTSTATUS ndr_check_array_length(struct ndr_pull *ndr, void *p, uint32_t length) } /* - store a switch value - */ -NTSTATUS ndr_push_set_switch_value(struct ndr_push *ndr, void *p, uint32_t val) -{ - return ndr_token_store(ndr, &ndr->switch_list, p, val); -} - -NTSTATUS ndr_pull_set_switch_value(struct ndr_pull *ndr, void *p, uint32_t val) -{ - return ndr_token_store(ndr, &ndr->switch_list, p, val); -} - -/* - retrieve a switch value - */ -uint32_t ndr_push_get_switch_value(struct ndr_push *ndr, void *p) -{ - return ndr_token_peek(&ndr->switch_list, p); -} - -uint32_t ndr_pull_get_switch_value(struct ndr_pull *ndr, void *p) -{ - return ndr_token_peek(&ndr->switch_list, p); -} - -/* pull a relative object - stage1 called during SCALARS processing */ diff --git a/source/librpc/ndr/ndr_spoolss_buf.c b/source/librpc/ndr/ndr_spoolss_buf.c index 4b1483709aa..e13e912b68f 100644 --- a/source/librpc/ndr/ndr_spoolss_buf.c +++ b/source/librpc/ndr/ndr_spoolss_buf.c @@ -39,8 +39,7 @@ for (i=0;i<r->out.count;i++) {\ ndr2->data += ndr2->offset;\ ndr2->offset = 0;\ - NDR_CHECK(ndr_push_set_switch_value(ndr2, &(*r->out.info)[i], r->in.level)); \ - NDR_CHECK(ndr_push_##type(ndr2, NDR_SCALARS|NDR_BUFFERS, &(*r->out.info)[i]));\ + NDR_CHECK(ndr_push_##type(ndr2, NDR_SCALARS|NDR_BUFFERS, r->in.level, &(*r->out.info)[i]));\ }\ if (*r->in.buf_size >= ndr2->offset) {\ buffer = data_blob_const(ndr2->data, ndr2->offset);\ @@ -95,8 +94,7 @@ for (i=0;i<r->out.count;i++) {\ ndr2->data += ndr2->offset;\ ndr2->offset = 0;\ - NDR_CHECK(ndr_pull_set_switch_value(ndr2, &(*r->out.info)[i], r->in.level)); \ - NDR_CHECK(ndr_pull_##type(ndr2, NDR_SCALARS|NDR_BUFFERS, &(*r->out.info)[i]));\ + NDR_CHECK(ndr_pull_##type(ndr2, NDR_SCALARS|NDR_BUFFERS, r->in.level, &(*r->out.info)[i]));\ }\ }\ } while(0) |