1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

pidl-wireshark: generate an error for the new Pipe type in typedef

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Matthieu Patou <mat@matws.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Matthieu Patou 2013-09-29 00:42:36 -07:00 committed by Stefan Metzmacher
parent 87fb54b77f
commit 5d0d45c9a7

View File

@ -188,6 +188,13 @@ sub Enum($$$$)
$self->register_type($name, "offset = $dissectorname(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);", "FT_UINT$enum_size", "BASE_DEC", "0", "VALS($valsstring)", $enum_size / 8); $self->register_type($name, "offset = $dissectorname(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);", "FT_UINT$enum_size", "BASE_DEC", "0", "VALS($valsstring)", $enum_size / 8);
} }
sub Pipe($$$$)
{
my ($self,$e,$name,$ifname) = @_;
error($e->{ORIGINAL}, "Pipe not yet supported");
return;
}
sub Bitmap($$$$) sub Bitmap($$$$)
{ {
my ($self,$e,$name,$ifname) = @_; my ($self,$e,$name,$ifname) = @_;
@ -400,6 +407,8 @@ sub ElementLevel($$$$$$$$)
$self->pidl_code("di->call_data->flags = saved_flags;"); $self->pidl_code("di->call_data->flags = saved_flags;");
$self->deindent; $self->deindent;
$self->pidl_code("}"); $self->pidl_code("}");
} elsif ($_->{TYPE} eq "PIPE") {
error($e->{ORIGINAL}, "Type PIPE not yet supported");
} else { } else {
die("Unknown type `$_->{TYPE}'"); die("Unknown type `$_->{TYPE}'");
} }
@ -788,13 +797,13 @@ sub Type($$$$)
my ($self, $e, $name, $ifname) = @_; my ($self, $e, $name, $ifname) = @_;
$self->PrintIdl(DumpType($e->{ORIGINAL})); $self->PrintIdl(DumpType($e->{ORIGINAL}));
{ {
ENUM => \&Enum, ENUM => \&Enum,
STRUCT => \&Struct, STRUCT => \&Struct,
UNION => \&Union, UNION => \&Union,
BITMAP => \&Bitmap, BITMAP => \&Bitmap,
TYPEDEF => \&Typedef TYPEDEF => \&Typedef,
PIPE => \&Pipe
}->{$e->{TYPE}}->($self, $e, $name, $ifname); }->{$e->{TYPE}}->($self, $e, $name, $ifname);
} }