From b19268ddc539ff88b3a03627b8ee4bbbd48813b9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 18 Jan 2005 05:32:35 +0000 Subject: r4815: Handle uint8 and uint16 bitmap types. Break out arguments to proto_register_protocol() so they can be renamed easily. Unfortunately the "pidl_" prefix will have to stick around if/when the old dissectors are removed because the filter and short names clash. (This used to be commit f2ce80e3350337ef795eb32f2478d218c2e382c3) --- source4/build/pidl/eparser.pm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'source4/build') diff --git a/source4/build/pidl/eparser.pm b/source4/build/pidl/eparser.pm index 02cc30c0aa..1c7a06571f 100644 --- a/source4/build/pidl/eparser.pm +++ b/source4/build/pidl/eparser.pm @@ -559,8 +559,8 @@ sub RewriteC($$$) # Bitmaps - s/(^(static\ )?NTSTATUS\ ndr_pull_(.+?),\ uint32\ \*r\)) - /NTSTATUS ndr_pull_$3, pidl_tree *tree, int hf, uint32_t *r)/smgx; + s/(^(static\ )?NTSTATUS\ ndr_pull_(.+?),\ uint(8|16|32)\ \*r\)) + /NTSTATUS ndr_pull_$3, pidl_tree *tree, int hf, uint$4_t *r)/smgx; # Call ethereal wrappers for pull of scalar values in # structures and functions, e.g @@ -698,7 +698,14 @@ sub RewriteC($$$) if (defined($if_uuid)) { - pidl "\tproto_dcerpc_pidl_$module = proto_register_protocol(\"pidl_$module\", \"pidl_$module\", \"pidl_$module\");\n\n"; + # These can be changed to non-pidl names if the old dissectors + # in epan/dissctors are deleted. + + my $name = uc($module) . " (pidl)"; + my $short_name = "pidl_$module"; + my $filter_name = "pidl_$module"; + + pidl "\tproto_dcerpc_pidl_$module = proto_register_protocol(\"$name\", \"$short_name\", \"$filter_name\");\n\n"; pidl "\tproto_register_field_array(proto_dcerpc_pidl_$module, hf, array_length (hf));\n"; pidl "\tproto_register_subtree_array(ett, array_length(ett));\n"; -- cgit