diff options
Diffstat (limited to 'src/journal/journal-file.h')
-rw-r--r-- | src/journal/journal-file.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index 7358173e7a..5b1530e7a7 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -137,6 +137,12 @@ static inline bool VALID_EPOCH(uint64_t u) { #define JOURNAL_HEADER_CONTAINS(h, field) \ (le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field)) +#define JOURNAL_HEADER_SEALED(h) \ + (!!(le32toh((h)->compatible_flags) & HEADER_COMPATIBLE_SEALED)) + +#define JOURNAL_HEADER_COMPRESSED(h) \ + (!!(le32toh((h)->incompatible_flags) & HEADER_INCOMPATIBLE_COMPRESSED)) + int journal_file_move_to_object(JournalFile *f, int type, uint64_t offset, Object **ret); uint64_t journal_file_entry_n_items(Object *o); |