1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <stdbool.h> 5 6 #include "journal-file.h" 7 8 int journal_file_append_tag(JournalFile *f); 9 int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime); 10 int journal_file_append_first_tag(JournalFile *f); 11 12 int journal_file_hmac_setup(JournalFile *f); 13 int journal_file_hmac_start(JournalFile *f); 14 int journal_file_hmac_put_header(JournalFile *f); 15 int journal_file_hmac_put_object(JournalFile *f, ObjectType type, Object *o, uint64_t p); 16 17 int journal_file_fss_load(JournalFile *f); 18 int journal_file_parse_verification_key(JournalFile *f, const char *key); 19 20 int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime); 21 int journal_file_fsprg_seek(JournalFile *f, uint64_t epoch); 22 23 bool journal_file_next_evolve_usec(JournalFile *f, usec_t *u); 24