X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fsd-journal.h;h=87da17ddc6d14ff066f5ce316170a2a9f6a4b068;hb=f4fb21c1515ca882514620b2dee31ef4246be565;hp=ee9813f28c346a6720fed95384a841b3f93635dc;hpb=bc85bfee87e11317fbcd1160c9003860dc6edde9;p=elogind.git diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h index ee9813f28..87da17ddc 100644 --- a/src/journal/sd-journal.h +++ b/src/journal/sd-journal.h @@ -31,14 +31,20 @@ /* TODO: * - * - check LE/BE conversion for 8bit, 16bit, 32bit values - * - implement audit gateway - * - implement stdout gateway + * - add options for copy-to-console, copy-to-kmsg + * - OR of matches is borked... * - extend hash tables table as we go * - accelerate looking for "all hostnames" and suchlike. - * - throttling + * - handle incomplete header + * + * - local deserializer + * - http server + * - message catalog + * + * - check LE/BE conversion for 8bit, 16bit, 32bit values * - cryptographic hash - * - compression + * - think about manipulations of header + * - implement audit gateway */ /* Write to daemon */ @@ -49,11 +55,19 @@ int sd_journal_printv(int priority, const char *format, va_list ap); int sd_journal_send(const char *format, ...) __attribute__((sentinel)); int sd_journal_sendv(const struct iovec *iov, int n); +int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix); + /* Browse journal stream */ typedef struct sd_journal sd_journal; -int sd_journal_open(sd_journal **ret); +enum { + SD_JOURNAL_LOCAL_ONLY = 1, + SD_JOURNAL_RUNTIME_ONLY = 2, + SD_JOURNAL_SYSTEM_ONLY = 4 +}; + +int sd_journal_open(sd_journal **ret, int flags); void sd_journal_close(sd_journal *j); int sd_journal_previous(sd_journal *j);