diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-05 00:59:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:31:15 -0500 |
commit | 02edb56c799d9c6db82fe861d588242f7c14df13 (patch) | |
tree | 4f4aaaac579abeaf91acb384de9ca4fbe9e2aad7 /source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm | |
parent | dcf88f58b4f9c21e410dc0a3c9fab17e59cf2946 (diff) | |
download | samba-02edb56c799d9c6db82fe861d588242f7c14df13.tar.gz samba-02edb56c799d9c6db82fe861d588242f7c14df13.tar.bz2 samba-02edb56c799d9c6db82fe861d588242f7c14df13.zip |
r9088: More ethereal parser generator updates
(This used to be commit 294e716621baa3e6fbc6bc471aed0b85ad93d1ed)
Diffstat (limited to 'source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm')
-rw-r--r-- | source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm b/source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm index aeca3d90f8..b2657b032f 100644 --- a/source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm +++ b/source4/build/pidl/Parse/Pidl/Ethereal/Conformance.pm @@ -8,7 +8,7 @@ package Parse::Pidl::Ethereal::Conformance; require Exporter; @ISA = qw(Exporter); -@EXPORT_OK = qw(EmitProhibited); +@EXPORT_OK = qw(EmitProhibited FindDissectorParam); use strict; @@ -33,10 +33,14 @@ sub handle_hf_rename($$) $hf_renames{$old} = $new; } +my %dissectorparams = (); + sub handle_param_value($$) { my ($dissector_name,$value) = @_; + $dissectorparams{$dissector_name} = $value; + } sub handle_hf_field($$$$$$$$) @@ -96,4 +100,13 @@ sub EmitProhibited($) return 0; } +sub FindDissectorParam($) +{ + my $type = shift; + + return $dissectorparams{$type} if defined ($dissectorparams{$type}); + + return 0; +} + 1; |