svn commit: samba r2297 - in branches/SAMBA_4_0/source/scripting/swig: .

tpot at samba.org tpot at samba.org
Sun Sep 12 10:50:29 GMT 2004


Author: tpot
Date: 2004-09-12 10:50:23 +0000 (Sun, 12 Sep 2004)
New Revision: 2297

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/scripting/swig&rev=2297&nolog=1

Log:
Add string conversion functions.

Modified:
   branches/SAMBA_4_0/source/scripting/swig/dcerpc.i


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/dcerpc.i
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/dcerpc.i	2004-09-12 10:49:41 UTC (rev 2296)
+++ branches/SAMBA_4_0/source/scripting/swig/dcerpc.i	2004-09-12 10:50:23 UTC (rev 2297)
@@ -134,9 +134,14 @@
 
 char *string_from_python(PyObject *obj)
 {
-	return NULL;
+	return PyString_AsString(obj);
 }
 
+PyObject *string_to_python(char *obj)
+{
+	return PyString_FromString(obj);
+}
+
 %}
 
 %include "samba.i"



More information about the samba-cvs mailing list