diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-28 22:41:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:40 +0100 |
commit | f023784d066f25135c2e54e91475418e80070873 (patch) | |
tree | 4b27669e721ff1efaf1b3dac059cbef1d47e1be8 /source4/lib | |
parent | 16325f13395a48daa9c0a8cb58b354e552776fce (diff) | |
download | samba-f023784d066f25135c2e54e91475418e80070873.tar.gz samba-f023784d066f25135c2e54e91475418e80070873.tar.bz2 samba-f023784d066f25135c2e54e91475418e80070873.zip |
r26187: Fix module name, indentation.
(This used to be commit ef790ebf3a712dbbb85d6af65c804199c2c084fc)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/ldb.i | 2 | ||||
-rw-r--r-- | source4/lib/talloc/talloc.i | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb.i b/source4/lib/ldb/ldb.i index 9dd8f7c8af..aec4e2294f 100644 --- a/source4/lib/ldb/ldb.i +++ b/source4/lib/ldb/ldb.i @@ -513,7 +513,7 @@ fail: #ifdef SWIGPYTHON %typemap(in,numinputs=0) struct ldb_result **result_as_bool (struct ldb_result *tmp) { $1 = &tmp; } %typemap(argout) struct ldb_result **result_as_bool { $result = ((*$1)->count > 0)?Py_True:Py_False; } - %typemap(freearg) struct ldb_result **result_as_bool { talloc_free(*$1); } + %typemap(freearg) struct ldb_result **result_as_bool { talloc_free(*$1); } ldb_error __contains__(ldb_dn *dn, struct ldb_result **result_as_bool) { return ldb_search($self, dn, LDB_SCOPE_BASE, NULL, NULL, diff --git a/source4/lib/talloc/talloc.i b/source4/lib/talloc/talloc.i index c35d5d2411..593c20465e 100644 --- a/source4/lib/talloc/talloc.i +++ b/source4/lib/talloc/talloc.i @@ -19,6 +19,8 @@ /* Don't expose talloc contexts in Python code. Python does reference counting for us, so just create a new top-level talloc context. */ +%module talloc; + %typemap(in, numinputs=0) TALLOC_CTX * { $1 = NULL; } |