summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-12 10:50:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:40 -0500
commit23492b303309327bc84788432f2a2cd4e99ef093 (patch)
treeb6ab1e4775085e6c92a16eaa43b33b0ece23013a /source4/scripting
parent4c017a95294b6745ea90692168066dad256995c7 (diff)
downloadsamba-23492b303309327bc84788432f2a2cd4e99ef093.tar.gz
samba-23492b303309327bc84788432f2a2cd4e99ef093.tar.bz2
samba-23492b303309327bc84788432f2a2cd4e99ef093.zip
r2297: Add string conversion functions.
(This used to be commit cbfb177394aaf2a382b481ffb3152ad3fe81de5a)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/swig/dcerpc.i7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i
index fb4870d819..10c20d201f 100644
--- a/source4/scripting/swig/dcerpc.i
+++ b/source4/scripting/swig/dcerpc.i
@@ -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);
}
%}