r7865: changed pidl to take a "const void *" instead of a "void *" for the
authorAndrew Tridgell <tridge@samba.org>
Fri, 24 Jun 2005 01:18:56 +0000 (01:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:44 +0000 (13:18 -0500)
commit152a6a00c31f52d14a63bfc977ac54713c56c9cd
tree82a0b1a45404f08f32b647a47b7c332469650fc8
parentd60b11c1f0151dbd758b896ba2934a8efa4ada75
r7865: changed pidl to take a "const void *" instead of a "void *" for the
structure in ndr_push_*() and ndr_print_*(). The push and print
functions really should not modify the structure.

metze, to make this work I had to change your spoolss hand
marshaller. Can you please check it is OK? I think that the IN and OUT
sides of that function are not ever called on the same structure, so I
think that attempt at remembering the value by assigning to
r->in._offered was not doing anything anyway, but please correct me if
I have misunderstood it.

If you really do need to remember something on those structures I'd
suggest the ndr_token_store() and ndr_token_retrieve() functions,
which are used by pidl for just this sort of thing.
(This used to be commit eee528be97fa43ca53bdc5652b4d29a0a2caf563)
17 files changed:
source4/build/pidl/dcom_stub.pm
source4/build/pidl/ndr_header.pm
source4/build/pidl/ndr_parser.pm
source4/build/pidl/server.pm
source4/libcli/nbt/nbtname.c
source4/librpc/ndr/libndr.h
source4/librpc/ndr/ndr.c
source4/librpc/ndr/ndr_drsuapi.c
source4/librpc/ndr/ndr_orpc.c
source4/librpc/ndr/ndr_sec.c
source4/librpc/ndr/ndr_sec_helper.c
source4/librpc/ndr/ndr_spoolss_buf.c
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc.h
source4/rpc_server/dcerpc_server.h
source4/rpc_server/echo/rpc_echo.c
source4/rpc_server/remote/dcesrv_remote.c