svn commit: samba r26032 - in branches/4.0-python: .
source/scripting/swig
jelmer at samba.org
jelmer at samba.org
Mon Nov 19 18:20:26 GMT 2007
Author: jelmer
Date: 2007-11-19 18:20:25 +0000 (Mon, 19 Nov 2007)
New Revision: 26032
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26032
Log:
Add common file for handling talloc contexts.
Added:
branches/4.0-python/source/scripting/swig/talloc.i
Modified:
branches/4.0-python/
Changeset:
Property changes on: branches/4.0-python
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:file-ids
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Added: branches/4.0-python/source/scripting/swig/talloc.i
===================================================================
--- branches/4.0-python/source/scripting/swig/talloc.i 2007-11-19 18:20:21 UTC (rev 26031)
+++ branches/4.0-python/source/scripting/swig/talloc.i 2007-11-19 18:20:25 UTC (rev 26032)
@@ -0,0 +1,24 @@
+/*
+ Unix SMB/CIFS implementation.
+ Copyright (C) Jelmer Vernooij <jelmer at 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 *mem_ctx {
+ $1 = NULL;
+}
More information about the samba-cvs
mailing list