summaryrefslogtreecommitdiff
path: root/source4/build/pidl/validator.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/pidl/validator.pm')
-rw-r--r--source4/build/pidl/validator.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/build/pidl/validator.pm b/source4/build/pidl/validator.pm
index 818611ea46..d496a02309 100644
--- a/source4/build/pidl/validator.pm
+++ b/source4/build/pidl/validator.pm
@@ -47,6 +47,17 @@ sub ValidElement($)
if ($e->{POINTERS} && $e->{ARRAY_LEN}) {
fatal(el_name($e) . " : pidl cannot handle pointers to arrays. Use a substructure instead\n");
}
+
+ if (util::has_property($e, "ptr")) {
+ fatal(el_name($e) . " : pidl does not support full NDR pointers yet\n");
+ }
+
+ if (!$e->{POINTERS} && (
+ util::has_property($e, "ptr") or
+ util::has_property($e, "unique") or
+ util::has_property($e, "ref"))) {
+ fatal(el_name($e) . " : pointer properties on non-pointer element\n");
+ }
}
#####################################################################