Author: metze
Date: 2007-08-16 13:39:30 +0000 (Thu, 16 Aug 2007)
New Revision: 24490

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24490

Log:
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
Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm 2007-08-16 
13:34:54 UTC (rev 24489)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm 2007-08-16 
13:39:30 UTC (rev 24490)
@@ -194,8 +194,8 @@
 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") {

Reply via email to