2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2012-08-16 01:51:54 +02:00
|
|
|
#pragma once
|
|
|
|
|
2012-08-16 02:14:34 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2012-08-16 01:51:54 +02:00
|
|
|
#include "journal-file.h"
|
|
|
|
|
|
|
|
int journal_file_append_tag(JournalFile *f);
|
|
|
|
int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime);
|
|
|
|
int journal_file_append_first_tag(JournalFile *f);
|
|
|
|
|
2012-08-17 00:45:18 +02:00
|
|
|
int journal_file_hmac_setup(JournalFile *f);
|
2012-08-16 23:58:14 +02:00
|
|
|
int journal_file_hmac_start(JournalFile *f);
|
2012-08-16 01:51:54 +02:00
|
|
|
int journal_file_hmac_put_header(JournalFile *f);
|
2014-12-10 15:18:49 +01:00
|
|
|
int journal_file_hmac_put_object(JournalFile *f, ObjectType type, Object *o, uint64_t p);
|
2012-08-16 01:51:54 +02:00
|
|
|
|
2012-08-17 00:45:18 +02:00
|
|
|
int journal_file_fss_load(JournalFile *f);
|
2012-08-20 16:51:46 +02:00
|
|
|
int journal_file_parse_verification_key(JournalFile *f, const char *key);
|
2012-08-16 23:58:14 +02:00
|
|
|
|
2012-08-17 00:45:18 +02:00
|
|
|
int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime);
|
2012-08-16 23:58:14 +02:00
|
|
|
int journal_file_fsprg_seek(JournalFile *f, uint64_t epoch);
|
2012-08-21 01:29:17 +02:00
|
|
|
|
|
|
|
bool journal_file_next_evolve_usec(JournalFile *f, usec_t *u);
|