diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-11 19:53:59 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-12 19:01:50 -0500 |
commit | a23873387a6e722b711092c89a08ab3f3d19361c (patch) | |
tree | 11c15e8fc89e903f6923f39d50dbf504ff325942 /src/python-systemd | |
parent | dc579853d429d15fba611213c4c0e8ab524e831b (diff) |
systemd-python: fix booted() and add two functions to docs
For some reason sphinx doesn't want to show inherited C functions.
Diffstat (limited to 'src/python-systemd')
-rw-r--r-- | src/python-systemd/_daemon.c | 2 | ||||
-rw-r--r-- | src/python-systemd/docs/daemon.rst | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/python-systemd/_daemon.c b/src/python-systemd/_daemon.c index 6b84fb81c7..f0ab16f659 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 72280ca2f0..0ad11edaf3 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 |