From 1cc101f1e59ca2f5e87dea48ac9ed98c6f077b3b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 14 Oct 2011 16:52:42 +0200 Subject: journal: if two entries match with everything but seqnums, they are still identical --- src/journal/sd-journal.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/journal/sd-journal.h') diff --git a/src/journal/sd-journal.h b/src/journal/sd-journal.h index 13b5f891d7..6b451b5765 100644 --- a/src/journal/sd-journal.h +++ b/src/journal/sd-journal.h @@ -35,6 +35,8 @@ * - implement stdout gateway * - extend hash table/bisect table as we go * - accelerate looking for "all hostnames" and suchlike. + * - throttling + * - enforce limit on open journal files in journald and journalctl */ typedef struct sd_journal sd_journal; @@ -50,7 +52,7 @@ int sd_journal_get_monotonic_usec(sd_journal *j, uint64_t *ret); int sd_journal_get_field(sd_journal *j, const char *field, const void **data, size_t *l); int sd_journal_iterate_fields(sd_journal *j, const void **data, size_t *l); -int sd_journal_add_match(sd_journal *j, const char *field, const void *data, size_t size); +int sd_journal_add_match(sd_journal *j, const void *data, size_t size); void sd_journal_flush_matches(sd_journal *j); int sd_journal_seek_head(sd_journal *j); @@ -64,6 +66,14 @@ int sd_journal_set_cursor(sd_journal *j, const char *cursor); int sd_journal_get_fd(sd_journal *j); +enum { + SD_JOURNAL_NOP, + SD_JOURNAL_APPEND, + SD_JOURNAL_DROP +}; + +int sd_journal_process(sd_journal *j); + #define SD_JOURNAL_FOREACH(j) \ while (sd_journal_next(j) > 0) -- cgit v1.2.3-54-g00ecf