1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4940: Add a variable to hold a list of typedefs for which we shouldn't generate

a dissector for.  A hand written dissector needs to be added to eparser.c
for the plugin to link.
This commit is contained in:
Tim Potter 2005-01-23 11:03:20 +00:00 committed by Gerald (Jerry) Carter
parent fb326cbb32
commit d4f7f6b0b4

View File

@ -21,6 +21,13 @@ sub pidl($)
print OUT shift;
}
#####################################################################
# a list of annotations
my $nopull_typedefs = {
# "policy_handle" => "1",
};
#####################################################################
# work out is a parse function should be declared static or not
sub fn_prefix($)
@ -462,7 +469,7 @@ sub RewriteC($$$)
# Read through file
my $cur_fn;
my $cur_fn = "";
while(<IN>) {
@ -505,6 +512,18 @@ sub RewriteC($$$)
$cur_fn = $1, if /NTSTATUS ndr_pull_(.*?)\(struct/;
# Skip functions we have marked as nopull
my $skip_fn = 0;
foreach my $f (keys(%{$nopull_typedefs})) {
$skip_fn = 1, if $cur_fn eq $f;
}
$cur_fn = "", if /^}/;
next, if $skip_fn;
#
# OK start wrapping the ndr_pull functions that actually
# implement the NDR decoding routines. This mainly consists