summaryrefslogtreecommitdiff
path: root/src/journal/journal-def.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-12-21 02:40:59 +0100
committerLennart Poettering <lennart@poettering.net>2011-12-21 02:40:59 +0100
commit807e17f05e217b474af39503efb9503d81b12596 (patch)
tree67f62efc1558ed2c33bec50df2c8540a02c0825c /src/journal/journal-def.h
parentbc85bfee87e11317fbcd1160c9003860dc6edde9 (diff)
journal: add inline compression support with XZ
Diffstat (limited to 'src/journal/journal-def.h')
-rw-r--r--src/journal/journal-def.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h
index 5f026ee0f6..ef0cb6dae6 100644
--- a/src/journal/journal-def.h
+++ b/src/journal/journal-def.h
@@ -50,9 +50,15 @@ enum {
_OBJECT_TYPE_MAX
};
+/* Object flags */
+enum {
+ OBJECT_COMPRESSED = 1
+};
+
_packed_ struct ObjectHeader {
uint8_t type;
- uint8_t reserved[7];
+ uint8_t flags;
+ uint8_t reserved[6];
uint64_t size;
uint8_t payload[];
};
@@ -123,6 +129,11 @@ enum {
STATE_ARCHIVED
};
+/* Header flags */
+enum {
+ HEADER_INCOMPATIBLE_COMPRESSED = 1
+};
+
_packed_ struct Header {
uint8_t signature[8]; /* "LPKSHHRH" */
uint32_t compatible_flags;