summaryrefslogtreecommitdiff
path: root/src/journal/journal-private.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-10-07 22:00:05 +0200
committerLennart Poettering <lennart@poettering.net>2011-10-07 22:02:06 +0200
commit260a2be45522f03ce8d8aca38e471d7b0882ff05 (patch)
tree99010f64fe17dbbd9e25a5583673876bb0e2b549 /src/journal/journal-private.h
parentdad503169b2665ecfd3f5bfb3c936897e44ecca7 (diff)
journal: replace linked list by hashmap when merging files
Diffstat (limited to 'src/journal/journal-private.h')
-rw-r--r--src/journal/journal-private.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/journal/journal-private.h b/src/journal/journal-private.h
index 863a39893b..914b73a40b 100644
--- a/src/journal/journal-private.h
+++ b/src/journal/journal-private.h
@@ -27,10 +27,20 @@
#include "sd-journal.h"
#include "journal-def.h"
#include "util.h"
+#include "sd-id128.h"
+
+typedef struct JournalCoursor {
+ sd_id128_t file_id;
+ sd_id128_t boot_id;
+ uint64_t seqnum;
+ uint64_t monotonic;
+ uint64_t realtime;
+ uint64_t xor_hash;
+} JournalCoursor;
typedef struct JournalFile JournalFile;
-int journal_file_open(sd_journal *j, const char *fname, int flags, mode_t mode, JournalFile **ret);
+int journal_file_open(const char *fname, int flags, mode_t mode, JournalFile **ret);
void journal_file_close(JournalFile *j);