From 2cbbb00a6cf695d605ede8720d0870d67a5ca9af Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 16 Aug 2007 13:39:30 +0000 Subject: r24490: For ParseBitmap() we use Parse::Pidl::Typelist::bitmap_type_fn() so for ParseEnum() we should also use Parse::Pidl::Typelist::enum_type_fn(). Also the base_type() property isn't standard IDL and we should not support it. This changes TDR enum to also to default to uint16 (as with NDR enums). metze (This used to be commit 13144bdea914f92b5e15fa807fa7ef7c4d6510a2) --- source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/pidl/lib/Parse/Pidl') diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm b/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm index a3cb4f3016..832a2c5463 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm @@ -194,8 +194,8 @@ sub ParserBitmap($$$$) sub ParserEnum($$$$) { my ($self,$e,$t,$p) = @_; - my $bt = ($e->{PROPERTIES}->{base_type} or "uint8"); - + my $bt = Parse::Pidl::Typelist::enum_type_fn($e); + $self->fn_declare($p, "NTSTATUS tdr_$t\_$e->{NAME} (struct tdr_$t *tdr".typearg($t).", enum $e->{NAME} *v)"); $self->pidl("{"); if ($t eq "pull") { -- cgit