From 0962e09ec305124d2a8dcb0269cf11c4bcdef715 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 20 Oct 2012 17:00:57 +0200 Subject: [PATCH] journal: link up documentation with the file structure header --- src/journal/journal-def.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/journal/journal-def.h b/src/journal/journal-def.h index 8f00176bd..351eec77c 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; -- 2.30.2