chiark / gitweb /
journal: add public API call sd_journal_get_events()
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Apr 2013 15:22:28 +0000 (17:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Apr 2013 15:22:28 +0000 (17:22 +0200)
commitee531d949c2f62374fc109252f8cbe61c2b8ee39
treed20b0aa3f34ceb74cb73e36896fb7cef1c33f61f
parent7c537b2e2826139bb73c6eee15d46bf9f7e6059f
journal: add public API call sd_journal_get_events()

This function should be used when filling in "struct pollfd"'s .events
field for watching the journal. It will always return POLLIN for now,
but we should keep our options open to change this later on.

This mimics libsystemd-bus' sd_bus_get_events() call with the same
purpose.
man/sd_journal_get_fd.xml
src/journal/journalctl.c
src/journal/libsystemd-journal.sym
src/journal/sd-journal.c
src/systemd/sd-journal.h