diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-08-16 13:39:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:00 -0500 |
commit | 2cbbb00a6cf695d605ede8720d0870d67a5ca9af (patch) | |
tree | 1a27d3103040c0590335a13fab880eecdf3e4187 /source4/pidl/lib/Parse/Pidl | |
parent | e3162d376cf5eb7086f8398c347420b077a2202a (diff) | |
download | samba-2cbbb00a6cf695d605ede8720d0870d67a5ca9af.tar.gz samba-2cbbb00a6cf695d605ede8720d0870d67a5ca9af.tar.bz2 samba-2cbbb00a6cf695d605ede8720d0870d67a5ca9af.zip |
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)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/TDR.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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") { |