r1269: Add a 'base' field to the ndr_ofs_list structure which is the base to
authorTim Potter <tpot@samba.org>
Sun, 27 Jun 2004 12:01:03 +0000 (12:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:47 +0000 (12:56 -0500)
commit638d3324952f44d97229cbd05bcfd58bc9ee2dc9
treeae537716d551ffe53e384aa6cff3f294f571cc4c
parent37fcf2236433bc5e74f19d2afac3d1d0055dcd01
r1269: Add a 'base' field to the ndr_ofs_list structure which is the base to
which the offset applies to.  In an array of structures containing
relative members, the offset applies to the start of the array element
being marshalled.  Previously, there was no way to access the relevant
structure start as by the time we have hit buffers, the head of the
offset list will be the last structure being marshalled.

Interestingly enough, this makes relstrs go away.  I think we thought
they were a special case in samba 3 but it turns out they are just
regular relative elements in the idl.  This makes spoolss a lot simpler
than I thought it would be.

I've run the samr and lsa tests and this doesn't seem to break anything.
It looks like security descriptors are the only structures that contain
relative members.

Oh yeah, this will probably require a 'make clean && make' otherwise you
will get bizzare errors.
(This used to be commit d379dcdfd5f41e7cf7668354c3011b8ace190953)
source4/librpc/ndr/libndr.h
source4/librpc/ndr/ndr.c