diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-06-21 07:50:02 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-06-21 07:53:30 +0200 |
commit | 02bbc3c83aec597e4b8c873916e9e29f3d02b132 (patch) | |
tree | 3215858aa089784ac27c86346792dcdbe6529fdb /src/include/common | |
parent | 15cd9a3881b030a1a4bddc809f038f86ec27e66d (diff) | |
download | postgresql-02bbc3c83aec597e4b8c873916e9e29f3d02b132.tar.gz postgresql-02bbc3c83aec597e4b8c873916e9e29f3d02b132.zip |
parse_manifest: Use const char *
This adapts the manifest parsing code to take advantage of the
const-ified jsonapi.
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://www.postgresql.org/message-id/flat/f732b014-f614-4600-a437-dba5a2c3738b%40eisentraut.org
Diffstat (limited to 'src/include/common')
-rw-r--r-- | src/include/common/parse_manifest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/common/parse_manifest.h b/src/include/common/parse_manifest.h index 2777b1e9d22..ee571a568a1 100644 --- a/src/include/common/parse_manifest.h +++ b/src/include/common/parse_manifest.h @@ -27,7 +27,7 @@ typedef void (*json_manifest_version_callback) (JsonManifestParseContext *, typedef void (*json_manifest_system_identifier_callback) (JsonManifestParseContext *, uint64 manifest_system_identifier); typedef void (*json_manifest_per_file_callback) (JsonManifestParseContext *, - char *pathname, + const char *pathname, size_t size, pg_checksum_type checksum_type, int checksum_length, uint8 *checksum_payload); typedef void (*json_manifest_per_wal_range_callback) (JsonManifestParseContext *, @@ -48,10 +48,10 @@ struct JsonManifestParseContext }; extern void json_parse_manifest(JsonManifestParseContext *context, - char *buffer, size_t size); + const char *buffer, size_t size); extern JsonManifestParseIncrementalState *json_parse_manifest_incremental_init(JsonManifestParseContext *context); extern void json_parse_manifest_incremental_chunk( - JsonManifestParseIncrementalState *incstate, char *chunk, size_t size, + JsonManifestParseIncrementalState *incstate, const char *chunk, size_t size, bool is_last); extern void json_parse_manifest_incremental_shutdown(JsonManifestParseIncrementalState *incstate); |