r5797: - add idl property [subcontext_size()]
commit483bb1418fd5c70c418142ade80c1e286adfa05a
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Mar 2005 14:33:38 +0000 (15 14:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:04 +0000 (10 13:11 -0500)
treedc2f4fd7589d736951f81c7efb71dd634724ff4a
parent8ac0928a914c1cee3f0493b515f03c6422a8b71a
r5797: - add idl property [subcontext_size()]

  this can be used like this
  [subcontext_size(28),subcontext(0)] dom_sid sid;

  this descripes a fixed 28 byte buffer which contains a dom_sid,
  and the rest of the buffer is padded with zero bytes if the dom_sid doesn't
  need all 28 byte in it's ndr encoding.

- only push and pull the subcontext when we are in the NDR_SCALARS section
  (tridge, jelmer: I hope this is correct for all cases...!?:-)

metze
source/build/pidl/ndr.pm
source/build/pidl/validator.pm
source/librpc/ndr/ndr.c