From: Lennart Poettering Date: Sat, 20 Oct 2012 15:00:57 +0000 (+0200) Subject: journal: link up documentation with the file structure header X-Git-Tag: v195~26 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0962e09ec305124d2a8dcb0269cf11c4bcdef715;hp=936d6fcb6c4fc8839d28f8585af6ba733a7e1a1a journal: link up documentation with the file structure header --- 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;