From: Zbigniew Jędrzejewski-Szmek Date: Tue, 12 Nov 2013 00:53:59 +0000 (-0500) Subject: systemd-python: fix booted() and add two functions to docs X-Git-Tag: v209~1448 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a23873387a6e722b711092c89a08ab3f3d19361c;p=elogind.git systemd-python: fix booted() and add two functions to docs For some reason sphinx doesn't want to show inherited C functions. --- diff --git a/src/python-systemd/_daemon.c b/src/python-systemd/_daemon.c index 6b84fb81c..f0ab16f65 100644 --- a/src/python-systemd/_daemon.c +++ b/src/python-systemd/_daemon.c @@ -51,7 +51,7 @@ static PyObject* booted(PyObject *self, PyObject *args) { assert(args == NULL); r = sd_booted(); - if (set_error(r, NULL, NULL)) + if (set_error(r, NULL, NULL) < 0) return NULL; return PyBool_FromLong(r); diff --git a/src/python-systemd/docs/daemon.rst b/src/python-systemd/docs/daemon.rst index 72280ca2f..0ad11edaf 100644 --- a/src/python-systemd/docs/daemon.rst +++ b/src/python-systemd/docs/daemon.rst @@ -14,3 +14,5 @@ .. autofunction:: _is_socket_unix .. autofunction:: _is_socket_inet .. autofunction:: _is_mq + .. autofunction:: notify + .. autofunction:: booted