diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-04 17:22:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-04 17:22:28 +0200 |
commit | ee531d949c2f62374fc109252f8cbe61c2b8ee39 (patch) | |
tree | d20b0aa3f34ceb74cb73e36896fb7cef1c33f61f /src/systemd/sd-journal.h | |
parent | 7c537b2e2826139bb73c6eee15d46bf9f7e6059f (diff) | |
download | systemd-ee531d949c2f62374fc109252f8cbe61c2b8ee39.tar.gz |
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.
Diffstat (limited to 'src/systemd/sd-journal.h')
-rw-r--r-- | src/systemd/sd-journal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemd/sd-journal.h b/src/systemd/sd-journal.h index 2e8d2d882f..aa7693af70 100644 --- a/src/systemd/sd-journal.h +++ b/src/systemd/sd-journal.h @@ -127,6 +127,7 @@ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_t *l); void sd_journal_restart_unique(sd_journal *j); int sd_journal_get_fd(sd_journal *j); +int sd_journal_get_events(sd_journal *j); int sd_journal_reliable_fd(sd_journal *j); int sd_journal_process(sd_journal *j); int sd_journal_wait(sd_journal *j, uint64_t timeout_usec); |