From e0fd2a143d1ff76373786ced79c2af7cbcb28025 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 30 Apr 2020 01:26:47 -0400 Subject: library api: tpax_file_create_memory_snapshot(): initial implementation. --- include/tpax/tpax.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/tpax/tpax.h b/include/tpax/tpax.h index c39f721..8d6183b 100644 --- a/include/tpax/tpax.h +++ b/include/tpax/tpax.h @@ -66,6 +66,8 @@ enum tpax_custom_error { TPAX_ERR_NULL_CONTEXT, TPAX_ERR_BAD_DATA, TPAX_ERR_FORBIDDEN_PATH, + TPAX_ERR_FILE_CHANGED, + TPAX_ERR_REGION_SIZE, TPAX_ERR_CAP, }; @@ -161,6 +163,9 @@ tpax_api int tpax_output_error_vector (const struct tpax_driver_ctx *); tpax_api int tpax_init_ustar_header (const struct tpax_driver_ctx *, const char *, const struct stat *, const char *, struct tpax_ustar_header *); +tpax_api int tpax_file_create_memory_snapshot (const struct tpax_driver_ctx *, const char *, + const struct stat *, void *); + /* package info */ tpax_api const struct tpax_source_version * tpax_source_version(void); -- cgit v1.2.3