git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a5840
)
r2297: Add string conversion functions.
author
Tim Potter
<tpot@samba.org>
Sun, 12 Sep 2004 10:50:23 +0000
(10:50 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:58:40 +0000
(12:58 -0500)
source/scripting/swig/dcerpc.i
patch
|
blob
|
history
diff --git
a/source/scripting/swig/dcerpc.i
b/source/scripting/swig/dcerpc.i
index fb4870d8192f6ce6919d75dab3ab5916579187b4..10c20d201fd6b513a96ce70f653fda58b8e94dd0 100644
(file)
--- a/
source/scripting/swig/dcerpc.i
+++ b/
source/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);
}
%}