summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-21 12:31:23 +0100
committerMichael Adam <obnox@samba.org>2008-02-13 01:40:10 +0100
commit4e066d4f8308501647577e3db31726f67509178c (patch)
treee6f5627698cba530d62e75c8e709ba64689dcc3c /source3
parent68c7089552019dd92e6ffb14e13f47ce3051868b (diff)
downloadsamba-4e066d4f8308501647577e3db31726f67509178c.tar.gz
samba-4e066d4f8308501647577e3db31726f67509178c.tar.bz2
samba-4e066d4f8308501647577e3db31726f67509178c.zip
r26072: Import trivial SWIG wrapper for talloc.
(cherry picked from commit 02d259c2c45c03dbfcd16173df93d7ba96ed1419) (This used to be commit 5938a732381abed9f5da1db505626b354fe7293e)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/talloc/talloc.i24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/lib/talloc/talloc.i b/source3/lib/talloc/talloc.i
new file mode 100644
index 0000000000..c35d5d2411
--- /dev/null
+++ b/source3/lib/talloc/talloc.i
@@ -0,0 +1,24 @@
+/*
+ Unix SMB/CIFS implementation.
+ Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/* Don't expose talloc contexts in Python code. Python does reference
+ counting for us, so just create a new top-level talloc context.
+ */
+%typemap(in, numinputs=0) TALLOC_CTX * {
+ $1 = NULL;
+}