pidl:Samba3/ServerNDR: export CallWithStructExported()
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Mar 2014 09:37:36 +0000 (10:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:56:53 +0000 (12:56 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm

index fa7303b854340976fc9b34d253ccfcd3f08eb89e..26e582cd6c039936249e3275821975162a4ebfcf 100644 (file)
@@ -8,7 +8,7 @@ package Parse::Pidl::Samba3::ServerNDR;
 
 use Exporter;
 @ISA = qw(Exporter);
-@EXPORT_OK = qw(DeclLevel);
+@EXPORT_OK = qw(DeclLevel CallWithStructExported);
 
 use strict;
 use Parse::Pidl qw(warning error fatal);
@@ -138,6 +138,18 @@ sub CallWithStruct($$$$$$)
        pidl "$ret;";
 }
 
+sub CallWithStructExported($$$$$$)
+{
+       my ($pipes_struct, $mem_ctx, $fn, $check, $cleanup, $return) = @_;
+
+       pidl_reset();
+       indent;
+
+       CallWithStruct($pipes_struct, $mem_ctx, $fn, $check, $cleanup, $return);
+
+       return pidl_return();
+}
+
 sub ParseFunction($$)
 {
        my ($if,$fn) = @_;