X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fsd-journal.h;h=97f9f0fa13e4177e4ee086ee9e1157257c3bc14a;hb=8b18eb674ce4d14e4819e102a0d6679a0fd2e6ce;hp=7e2ef1532798ca03d56023de8200b7662e2c2a95;hpb=6e409ce10d134625626d1eddfd6152755ef1908d;p=elogind.git diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h index 7e2ef1532..97f9f0fa1 100644 --- a/src/journal/sd-journal.h +++ b/src/journal/sd-journal.h @@ -31,14 +31,21 @@ /* TODO: * - * - check LE/BE conversion for 8bit, 16bit, 32bit values - * - implement audit gateway + * - OR of matches is borked... * - extend hash tables table as we go * - accelerate looking for "all hostnames" and suchlike. - * - throttling + * - hookup with systemctl + * - handle incomplete header + * - write unit files + * + * - local deserializer + * - http server + * - message catalog + * + * - check LE/BE conversion for 8bit, 16bit, 32bit values * - cryptographic hash - * - never access beyond fle size check - * - OR of matches is borked... + * - think about manipulations of header + * - implement audit gateway */ /* Write to daemon */ @@ -55,7 +62,13 @@ int sd_journal_stream_fd(const char *tag, int priority, int priority_prefix); 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);