summaryrefslogtreecommitdiff
path: root/systemd/pyutil.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-17 12:50:13 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-05 14:19:20 -0400
commit2bfb849c70ac2328d37755f1850fc7cfde1d6b4d (patch)
tree6327e6a91b4891c793769f4442ce5c1efad31fa0 /systemd/pyutil.h
parent2c0317be82aa85911fe7665719d0139ee4330211 (diff)
downloadpython-systemd-2bfb849c70ac2328d37755f1850fc7cfde1d6b4d.tar.gz
systemd-python: add support for sd_j_open_files
Also export missing flags.
Diffstat (limited to 'systemd/pyutil.h')
-rw-r--r--systemd/pyutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/systemd/pyutil.h b/systemd/pyutil.h
index ea88840..1477e7b 100644
--- a/systemd/pyutil.h
+++ b/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