]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: introduce sd_journal_step_one()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 28 May 2023 05:20:27 +0000 (14:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 28 May 2023 14:53:18 +0000 (23:53 +0900)
commitb78f9481bc03455eafd9239c33fc2f124779760c
treed3c26db194810f0dae1b0bcedea8b6ab84573e2f
parentfb35feae979e0a124ab1c3dcb337f47c186373f3
sd-journal: introduce sd_journal_step_one()

After the commit 7a4ee861615101ddd2f95056cf30e69e41da86ce,
sd_journal_next() following sd_journal_seek_tail() takes no-op,
and we need to call sd_journal_previous(). This may be useful in
some cases, e.g. to fix the issue explained in the previous commit.
man/rules/meson.build
man/sd_journal_next.xml
src/libsystemd/libsystemd.sym
src/libsystemd/sd-journal/sd-journal.c
src/systemd/sd-journal.h