Simon Farnsworth
9f1a574d50
python-systemd: fix is_socket_inet to cope with ports
...
Just a couple of trivial oversights.
2015-04-12 10:20:36 -04:00
Zbigniew Jędrzejewski-Szmek
73f860db98
Always prefer our headers to system headers
...
In practice this shouldn't make much difference, but
sometimes our headers might be newer, and we want to
test them.
2014-07-31 08:56:03 -04:00
Lennart Poettering
f0f2e63bb2
macro: introduce nice macro for disabling -Wmissing-prototypes warnigs
2014-02-20 18:47:33 +01:00
Zbigniew Jędrzejewski-Szmek
819c7e4fa4
systemd-python: fix listen_fds under Python 2
2013-12-30 00:17:16 -05:00
Zbigniew Jędrzejewski-Szmek
b560cc1c45
systemd-python: fix setting of exception codes
...
The return value of 0 would be treated as failure by mistake,
resulting in " SystemError: error return without exception set".
The way that set_error() is used is changed to be the same
everywhere.
2013-12-30 00:17:15 -05:00
Zbigniew Jędrzejewski-Szmek
a23873387a
systemd-python: fix booted() and add two functions to docs
...
For some reason sphinx doesn't want to show inherited C functions.
2013-11-12 19:01:50 -05:00
Zbigniew Jędrzejewski-Szmek
affba8e902
systemd-python: add support for sd_j_open_files
...
Also export missing flags.
2013-07-17 23:41:10 -04:00
Zbigniew Jędrzejewski-Szmek
925d98b344
systemd-python: wrap sd_notify
...
_listen_fds() is modified to accept unset_environment arg as keyword,
to match new notify().
2013-07-05 22:50:42 -04:00
Zbigniew Jędrzejewski-Szmek
7ecec4705c
systemd-python: wrap sd_login_monitor
2013-05-09 18:13:33 -04:00
Zbigniew Jędrzejewski-Szmek
5afbe712db
systemd-python: add __version__ strings
2013-05-08 21:34:44 -04:00
Harald Hoyer
7fd1b19bc9
move _cleanup_ attribute in front of the type
...
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
2013-04-18 09:11:22 +02:00
Zbigniew Jędrzejewski-Szmek
b04c8c83e8
systemd-python: add systemd.daemon wrapping sd-daemon
...
Please see the documentation (e.g. pydoc3 systemd.daemon) for full
description. As usual, systemd._daemon wraps the raw interface, while
systemd.daemon provides the more pythonic API. sd_listen_fds,
sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix,
sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently
wrapped.
2013-03-15 22:55:24 -04:00