diff options
author | Tim Potter <tpot@samba.org> | 2004-09-15 22:35:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:46 -0500 |
commit | d46b1885607dd85cfe3538ed92d4ad43c86e381b (patch) | |
tree | 03a34f01aae1f03209e7b76498500d02aebc2265 /source4/build | |
parent | aa60dc1630c1e28d4e60af9d04ea77477d0f7921 (diff) | |
download | samba-d46b1885607dd85cfe3538ed92d4ad43c86e381b.tar.gz samba-d46b1885607dd85cfe3538ed92d4ad43c86e381b.tar.bz2 samba-d46b1885607dd85cfe3538ed92d4ad43c86e381b.zip |
r2359: More consistency fixes: pass a talloc context to every function that
doesn't convert scalar types, more renaming of function names.
Implement conversion fns for dom_sid, dom_sid2 (to struct version stubbed
out). Also from Python conversions for security_acl and security_descriptors.
(This used to be commit 945a4681051132c13f9235f676464fffb3bfadc8)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/pidl/swig.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm index 57d5947ff6..ba7f04e3b9 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/build/pidl/swig.pm @@ -47,12 +47,12 @@ sub XFromPython($$) # Special cases if (($e->{TYPE} eq "policy_handle" || $e->{TYPE} eq "string") && $e->{POINTERS} == 1) { - $result .= "\ts->$prefix$e->{NAME} = $e->{TYPE}_ptr_from_python($obj);\n"; + $result .= "\ts->$prefix$e->{NAME} = $e->{TYPE}_ptr_from_python(mem_ctx, $obj);\n"; return $result; } if ($e->{TYPE} eq "string" && $e->{POINTERS} == 1) { - $result .= "\ts->$prefix$e->{NAME} = policy_handle_ptr_from_python($obj);\n"; + $result .= "\ts->$prefix$e->{NAME} = policy_handle_ptr_from_python(mem_ctx, $obj);\n"; return $result; } @@ -94,12 +94,12 @@ sub XToPython($$) # Special cases if ($e->{TYPE} eq "policy_handle" && $e->{POINTERS} == 1) { - $result .= "\tPyDict_SetItem(obj, PyString_FromString(\"$e->{NAME}\"), policy_handle_ptr_to_python(s->$prefix$e->{NAME}));\n"; + $result .= "\tPyDict_SetItem(obj, PyString_FromString(\"$e->{NAME}\"), policy_handle_ptr_to_python(mem_ctx, s->$prefix$e->{NAME}));\n"; return $result; } if ($e->{TYPE} eq "string" && $e->{POINTERS} == 1) { - $result .= "\tPyDict_SetItem(obj, PyString_FromString(\"$e->{NAME}\"), string_ptr_to_python(s->$prefix$e->{NAME}));\n"; + $result .= "\tPyDict_SetItem(obj, PyString_FromString(\"$e->{NAME}\"), string_ptr_to_python(mem_ctx, s->$prefix$e->{NAME}));\n"; return $result; } |