summaryrefslogtreecommitdiff
path: root/source4/build/pidl/validator.pm
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-03-15 14:33:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:04 -0500
commita81a2c22a2a3684bcf3df441e9186ae414639db3 (patch)
tree29586ed169351b260ceb311374f3b96805781cee /source4/build/pidl/validator.pm
parentebc34d215780e33eb1b1fa377c5f76f425df35f1 (diff)
downloadsamba-a81a2c22a2a3684bcf3df441e9186ae414639db3.tar.gz
samba-a81a2c22a2a3684bcf3df441e9186ae414639db3.tar.bz2
samba-a81a2c22a2a3684bcf3df441e9186ae414639db3.zip
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 (This used to be commit 483bb1418fd5c70c418142ade80c1e286adfa05a)
Diffstat (limited to 'source4/build/pidl/validator.pm')
-rw-r--r--source4/build/pidl/validator.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/build/pidl/validator.pm b/source4/build/pidl/validator.pm
index e8a42c6031..5e1f1e1660 100644
--- a/source4/build/pidl/validator.pm
+++ b/source4/build/pidl/validator.pm
@@ -72,6 +72,10 @@ sub ValidElement($)
fatal(el_name($e) . " : length_is() on non-array element");
}
+ if (defined (util::has_property($e, "subcontext_size")) and not defined(util::has_property($e, "subcontext"))) {
+ fatal(el_name($e) . " : subcontext_size() on non-subcontext element");
+ }
+
if (!$e->{POINTERS} && (
util::has_property($e, "ptr") or
util::has_property($e, "unique") or