mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r2297: Add string conversion functions.
(This used to be commit cbfb177394
)
This commit is contained in:
parent
4c017a9529
commit
23492b3033
@ -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