From 23492b303309327bc84788432f2a2cd4e99ef093 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 12 Sep 2004 10:50:23 +0000 Subject: r2297: Add string conversion functions. (This used to be commit cbfb177394aaf2a382b481ffb3152ad3fe81de5a) --- source4/scripting/swig/dcerpc.i | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/scripting/swig') 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); } %} -- cgit