mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r2297: Add string conversion functions.
This commit is contained in:
parent
e4a5840ff8
commit
cbfb177394
@ -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);
|
||||
}
|
||||
|
||||
%}
|
||||
|
Loading…
Reference in New Issue
Block a user