summaryrefslogtreecommitdiff
path: root/source4/lib/talloc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-21 12:31:23 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:53 +0100
commitc027a0d111bf52716de073e456f0a93d909e870c (patch)
tree19496428c0de86bda05fec036fb8b15a90a9592f /source4/lib/talloc
parentf47bc82561707130be5d56c22300f11175401d66 (diff)
downloadsamba-c027a0d111bf52716de073e456f0a93d909e870c.tar.gz
samba-c027a0d111bf52716de073e456f0a93d909e870c.tar.bz2
samba-c027a0d111bf52716de073e456f0a93d909e870c.zip
r26072: Import trivial SWIG wrapper for talloc.
(This used to be commit 02d259c2c45c03dbfcd16173df93d7ba96ed1419)
Diffstat (limited to 'source4/lib/talloc')
-rw-r--r--source4/lib/talloc/talloc.i24
1 files changed, 24 insertions, 0 deletions
diff --git a/source4/lib/talloc/talloc.i b/source4/lib/talloc/talloc.i
new file mode 100644
index 0000000000..c35d5d2411
--- /dev/null
+++ b/source4/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;
+}