chiark / gitweb /
systemd-python: export sd_j_get_fd, sd_j_reliable_fd, sd_j_close
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2013 05:35:28 +0000 (00:35 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2013 05:45:56 +0000 (00:45 -0500)
commitf2e82cd5add31d704b39a91d570ab6649653fa49
tree27490afd9e15cf4cdca37ec7f26d448f201a4aa3
parent5c1c14b3a021fbf91f31018256b0c241ea1fe3f0
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.
src/python-systemd/_reader.c
src/python-systemd/docs/journal.rst