r6294: - add obfuscate support, which is used in MAPI rpc's, (the ^= 0xA5 stuff),
[sfrench/samba-autobuild/.git] / source / build / pidl / validator.pm
index 7bd82f150690a8d9800fef66ad12550561650635..42e9f699dc38dc14cd6ca85c5cf4ba704b5fc45c 100644 (file)
@@ -86,6 +86,7 @@ my %property_list = (
        "subcontext"            => {},
        "subcontext_size"       => {},
        "compression"           => {},
+       "obfuscation"           => {},
 
        # enum
        "enum8bit"              => {},
@@ -167,6 +168,10 @@ sub ValidElement($)
                fatal(el_name($e) . " : compression() on non-subcontext element");
        }
 
+       if (defined (util::has_property($e, "obfuscation")) and not defined(util::has_property($e, "subcontext"))) {
+               fatal(el_name($e) . " : obfuscation() on non-subcontext element");
+       }
+
        if (!$e->{POINTERS} && (
                util::has_property($e, "ptr") or
                util::has_property($e, "unique") or