Author: jelmer
Date: 2007-12-14 14:28:16 +0000 (Fri, 14 Dec 2007)
New Revision: 26455

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

Log:
Use new talloctype macro in generated SWIG code as well.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm        
2007-12-14 14:28:07 UTC (rev 26454)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm        
2007-12-14 14:28:16 UTC (rev 26455)
@@ -60,6 +60,8 @@
        pidl "typedef struct $if->{NAME} { struct dcerpc_pipe *pipe; } 
$if->{NAME};";
        pidl "}";
        pidl "";
+       pidl "%talloctype($if->{NAME});";
+       pidl "";
        pidl "\%extend $if->{NAME} {";
        indent();
        pidl "$if->{NAME} () {";
@@ -75,10 +77,6 @@
        deindent;
        pidl "}";
        pidl "";
-       pidl "~$if->{NAME}() {";
-       pidl "\ttalloc_free(\$self);";
-       pidl "}";
-       pidl "";
 
        foreach my $fn (@{$if->{FUNCTIONS}}) {
                pidl "/* $fn->{NAME} */";
@@ -158,6 +156,7 @@
        pidl "%}";
        pidl "\%import \"../rpc/dcerpc.i\"";
        pidl "\%import \"../../libcli/util/errors.i\"";
+       pidl "\%import \"../../lib/talloc/talloc.i\"";
        pidl "";
        foreach (@$ndr) {
                IgnoreInterface($basename, $_) if ($_->{TYPE} eq "INTERFACE");

Reply via email to