mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
r26455: Use new talloctype macro in generated SWIG code as well.
(This used to be commit 77748c6a9f118c1a2fb9dbc76546d767f1cc27eb)
This commit is contained in:
parent
df8c7da800
commit
d1807aa9c5
@ -60,6 +60,8 @@ sub ParseInterface($$)
|
||||
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 @@ sub ParseInterface($$)
|
||||
deindent;
|
||||
pidl "}";
|
||||
pidl "";
|
||||
pidl "~$if->{NAME}() {";
|
||||
pidl "\ttalloc_free(\$self);";
|
||||
pidl "}";
|
||||
pidl "";
|
||||
|
||||
foreach my $fn (@{$if->{FUNCTIONS}}) {
|
||||
pidl "/* $fn->{NAME} */";
|
||||
@ -158,6 +156,7 @@ sub Parse($$$$)
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user