1
0
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:
Tim Potter 2004-09-12 10:50:23 +00:00 committed by Gerald (Jerry) Carter
parent e4a5840ff8
commit cbfb177394

View File

@ -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);
}
%}