r2297: Add string conversion functions.
authorTim Potter <tpot@samba.org>
Sun, 12 Sep 2004 10:50:23 +0000 (10:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:40 +0000 (12:58 -0500)
source/scripting/swig/dcerpc.i

index fb4870d8192f6ce6919d75dab3ab5916579187b4..10c20d201fd6b513a96ce70f653fda58b8e94dd0 100644 (file)
@@ -134,7 +134,12 @@ struct security_descriptor *security_descriptor_from_python(PyObject *obj)
 
 char *string_from_python(PyObject *obj)
 {
-       return NULL;
+       return PyString_AsString(obj);
+}
+
+PyObject *string_to_python(char *obj)
+{
+       return PyString_FromString(obj);
 }
 
 %}