X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpython-systemd%2Fpyutil.h;fp=src%2Fpython-systemd%2Fpyutil.h;h=1477e7bf9c4aa8fa3ec64f62ca537e10f9bd6e33;hp=ea88840fa7fc7575c58aeb0bc64ac717012fc9b7;hb=affba8e90243526be673ad9f9b306a740b8824a6;hpb=1070f974f7a1b6ba012e352b9d635d3902eca244 diff --git a/src/python-systemd/pyutil.h b/src/python-systemd/pyutil.h index ea88840fa..1477e7bf9 100644 --- a/src/python-systemd/pyutil.h +++ b/src/python-systemd/pyutil.h @@ -30,6 +30,10 @@ void cleanup_Py_DECREFp(PyObject **p); PyObject* absolute_timeout(uint64_t t); int set_error(int r, const char* path, const char* invalid_message); +#if PY_MAJOR_VERSION >=3 && PY_MINOR_VERSION >= 1 +int Unicode_FSConverter(PyObject* obj, void *_result); +#endif + #define _cleanup_Py_DECREF_ __attribute__((cleanup(cleanup_Py_DECREFp))) #if PY_MAJOR_VERSION >=3