PostgreSQL Source Code  git master
parse_manifest.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * parse_manifest.h
4  * Parse a backup manifest in JSON format.
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/bin/pg_verifybackup/parse_manifest.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef PARSE_MANIFEST_H
15 #define PARSE_MANIFEST_H
16 
17 #include "access/xlogdefs.h"
18 #include "common/checksum_helper.h"
19 #include "mb/pg_wchar.h"
20 
23 
25  char *pathname,
26  size_t size, pg_checksum_type checksum_type,
27  int checksum_length, uint8 *checksum_payload);
29  TimeLineID tli,
30  XLogRecPtr start_lsn, XLogRecPtr end_lsn);
32  const char *fmt,...) pg_attribute_printf(2, 3)
34 
36 {
37  void *private_data;
41 };
42 
44  char *buffer, size_t size);
45 
46 #endif
uint32 TimeLineID
Definition: xlogdefs.h:52
json_manifest_error_callback error_cb
void(* pg_attribute_noreturn)()
unsigned char uint8
Definition: c.h:373
#define pg_attribute_printf(f, a)
Definition: c.h:131
void json_parse_manifest(JsonManifestParseContext *context, char *buffer, size_t size)
void(* json_manifest_error_callback)(JsonManifestParseContext *, const char *fmt,...) pg_attribute_printf(2
pg_checksum_type
uint64 XLogRecPtr
Definition: xlogdefs.h:21
void(* json_manifest_perfile_callback)(JsonManifestParseContext *, char *pathname, size_t size, pg_checksum_type checksum_type, int checksum_length, uint8 *checksum_payload)
void(* json_manifest_perwalrange_callback)(JsonManifestParseContext *, TimeLineID tli, XLogRecPtr start_lsn, XLogRecPtr end_lsn)
json_manifest_perwalrange_callback perwalrange_cb
json_manifest_perfile_callback perfile_cb