summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-20 17:00:57 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-20 17:01:19 +0200
commit0962e09ec305124d2a8dcb0269cf11c4bcdef715 (patch)
treedd9faaaddf1959702e4442edb41df2b9c0051cf2 /src/journal
parent936d6fcb6c4fc8839d28f8585af6ba733a7e1a1a (diff)
journal: link up documentation with the file structure header
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journal-def.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h
index 8f00176bd7..351eec77c5 100644
--- a/src/journal/journal-def.h
+++ b/src/journal/journal-def.h
@@ -27,6 +27,13 @@
#include "macro.h"
+/*
+ * If you change this file you probably should also change its documentation:
+ *
+ * http://www.freedesktop.org/wiki/Software/systemd/journal-files
+ *
+ */
+
typedef struct Header Header;
typedef struct ObjectHeader ObjectHeader;
@@ -47,12 +54,12 @@ typedef struct FSSHeader FSSHeader;
/* Object types */
enum {
OBJECT_UNUSED,
- OBJECT_DATA, /* !!! */
+ OBJECT_DATA,
OBJECT_FIELD,
OBJECT_ENTRY,
OBJECT_DATA_HASH_TABLE,
OBJECT_FIELD_HASH_TABLE,
- OBJECT_ENTRY_ARRAY, /* !!! */
+ OBJECT_ENTRY_ARRAY,
OBJECT_TAG,
_OBJECT_TYPE_MAX
};
@@ -169,9 +176,9 @@ _packed_ struct Header {
sd_id128_t seqnum_id;
le64_t header_size;
le64_t arena_size;
- le64_t data_hash_table_offset; /* for looking up data objects */
+ le64_t data_hash_table_offset;
le64_t data_hash_table_size;
- le64_t field_hash_table_offset; /* for looking up field objects */
+ le64_t field_hash_table_offset;
le64_t field_hash_table_size;
le64_t tail_object_offset;
le64_t n_objects;