aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/write_manifest.h
blob: 3bb9c04ec299f7ae72148c61131d50c56bcf6ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*-------------------------------------------------------------------------
 *
 * Write a new backup manifest.
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/bin/pg_combinebackup/write_manifest.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef WRITE_MANIFEST_H
#define WRITE_MANIFEST_H

#include "common/checksum_helper.h"

struct manifest_wal_range;

struct manifest_writer;
typedef struct manifest_writer manifest_writer;

extern manifest_writer *create_manifest_writer(char *directory,
											   uint64 system_identifier);
extern void add_file_to_manifest(manifest_writer *mwriter,
								 const char *manifest_path,
								 uint64 size, time_t mtime,
								 pg_checksum_type checksum_type,
								 int checksum_length,
								 uint8 *checksum_payload);
extern void finalize_manifest(manifest_writer *mwriter,
							  struct manifest_wal_range *first_wal_range);

#endif							/* WRITE_MANIFEST_H */