chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: Don't hold pointers to journal while remapping
[elogind.git]
/
src
/
journal
/
journal-def.h
diff --git
a/src/journal/journal-def.h
b/src/journal/journal-def.h
index 5f026ee0f643037300003a63ab1b056e0fb90060..964e0c2b81b6c58e5a970dcc359b0f9389c1fa13 100644
(file)
--- a/
src/journal/journal-def.h
+++ b/
src/journal/journal-def.h
@@
-24,8
+24,9
@@
#include <inttypes.h>
#include <inttypes.h>
+#include <systemd/sd-id128.h>
+
#include "macro.h"
#include "macro.h"
-#include "sd-id128.h"
typedef struct Header Header;
typedef struct ObjectHeader ObjectHeader;
typedef struct Header Header;
typedef struct ObjectHeader ObjectHeader;
@@
-50,9
+51,15
@@
enum {
_OBJECT_TYPE_MAX
};
_OBJECT_TYPE_MAX
};
+/* Object flags */
+enum {
+ OBJECT_COMPRESSED = 1
+};
+
_packed_ struct ObjectHeader {
uint8_t type;
_packed_ struct ObjectHeader {
uint8_t type;
- uint8_t reserved[7];
+ uint8_t flags;
+ uint8_t reserved[6];
uint64_t size;
uint8_t payload[];
};
uint64_t size;
uint8_t payload[];
};
@@
-123,6
+130,11
@@
enum {
STATE_ARCHIVED
};
STATE_ARCHIVED
};
+/* Header flags */
+enum {
+ HEADER_INCOMPATIBLE_COMPRESSED = 1
+};
+
_packed_ struct Header {
uint8_t signature[8]; /* "LPKSHHRH" */
uint32_t compatible_flags;
_packed_ struct Header {
uint8_t signature[8]; /* "LPKSHHRH" */
uint32_t compatible_flags;