Commit graph

20 commits

Author SHA1 Message Date
Kay Sievers
2a3fc158a5 remove gudev and gtk-doc
The library moved to:
  https://git.gnome.org/browse/libgudev/
2015-07-05 14:19:22 -04:00
Zbigniew Jędrzejewski-Szmek
07c1d9a144 systemd-python: fix booted() and add two functions to docs
For some reason sphinx doesn't want to show inherited C functions.
2015-07-05 14:19:21 -04:00
Zbigniew Jędrzejewski-Szmek
c0d8b4e810 systemd-python: also update the documentation
sphinx, oh sphinx, why do you require manual ficksups all the time?
2015-07-05 14:19:20 -04:00
Zbigniew Jędrzejewski-Szmek
3ac545a83d systemd-python: wrap sd_login_monitor 2015-07-05 14:19:20 -04:00
Zbigniew Jędrzejewski-Szmek
466a9b7fe1 systemd-python: add wrappers for easy functions in sd-login
sd_get_uids, sd_get_seats, sd_get_sessions, and sd_get_machine_names.
2015-07-05 14:19:20 -04:00
Zbigniew Jędrzejewski-Szmek
68db467eea sd-messages.h: add new bootchart message id 2015-07-05 14:19:19 -04:00
Zbigniew Jędrzejewski-Szmek
0035bc19b1 Report about syntax errors with metadata
The information about the unit for which files are being parsed
is passed all the way down. This way messages land in the journal
with proper UNIT=... or USER_UNIT=... attribution.

'systemctl status' and 'journalctl -u' not displaying those messages
has been a source of confusion for users, since the journal entry for
a misspelt setting was often logged quite a bit earlier than the
failure to start a unit.

Based-on-a-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
2015-07-05 14:19:19 -04:00
Zbigniew Jędrzejewski-Szmek
0c9613000a systemd-python: allow retrieval of single fields
This can give huge efficiency gains, e.g. if only MESSAGE
is required and all other fields can be ignored.
2015-07-05 14:19:19 -04:00
Zbigniew Jędrzejewski-Szmek
d583bb0f53 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.
2015-07-05 14:19:18 -04:00
Zbigniew Jędrzejewski-Szmek
961f238f8f man,html: say 'systemd 198' in the header
This should help readers of the man or HTML pages know if the documentation
is out of date. An alternative to use a date generated from 'git log' was
considered, but since we try to keep user visible documentation up to date,
showing the project version should be enough.
2015-07-05 14:19:18 -04:00
Zbigniew Jędrzejewski-Szmek
98d3fa4753 python/docs: use the same links on top as in man pages
I forgot to commit the layout file, because it was gitignored.
Fixed now.
2015-07-05 14:19:18 -04:00
Zbigniew Jędrzejewski-Szmek
531c97c27b html: make python docs look more like the rest
The result is ugly enough, I hope, to motivate someone with
design skills to fix it.
2015-07-05 14:19:18 -04:00
Zbigniew Jędrzejewski-Szmek
3f1377a8e1 systemd-python: provide version info to sphinx 2015-07-05 14:19:18 -04:00
Zbigniew Jędrzejewski-Szmek
000525db3e systemd-python: export sd_j_get_fd, sd_j_reliable_fd, sd_j_close
sd_journal_get_fd(j) is called j.fileno(), for compatiblity with
Python conventions for file-like objects.

More importantly, those new .seek_head() and .seek_tail() do not
call .get_next(). This is better, if one wants to skip before
retrieving an entry.
2015-07-05 14:19:17 -04:00
Zbigniew Jędrzejewski-Szmek
cbbe787926 systemd-python: split .seek() into .seek_head() and .seek_tail()
This way python code follows the original interface more closely.
Also, .seek(0, journal.SEEK_END) was just to much to type.
2015-07-05 14:19:17 -04:00
Zbigniew Jędrzejewski-Szmek
3223d0b21f python-systemd: rename Journal to Reader
It seems inevitable that we'll also grow a writing interface,
and then it'll be cumbersome to have a "Journal" for reading,
and a "Writer" for writing.
2015-07-05 14:19:17 -04:00
Zbigniew Jędrzejewski-Szmek
4a3c9f4286 systemd-python: return both parts of sd_journal_get_monotonic_usec
In Python 3, a named tuple is used. In Python 2, a simple
tuple is used. In either case, the pair is (timestamp, bootid).
2015-07-05 14:19:17 -04:00
Zbigniew Jędrzejewski-Szmek
8d697bfd13 systemd-python: document attributes
In id128 it would be better to add everything automatically, but
sphinx cannot do this right now.
2015-07-05 14:19:16 -04:00
Zbigniew Jędrzejewski-Szmek
108e4de1e4 sphinx: document Journal class too 2015-07-05 14:19:15 -04:00
Zbigniew Jędrzejewski-Szmek
0c023a2c03 python: build html docs using sphinx
Build instructions:
   make
   make DESTIDIR=/tmp/... install
   make DESTIDIR=/tmp/... sphinx-html sphinx-man sphinx-epub ...
2015-07-05 14:19:14 -04:00