From 93e4d253fe9a05b34509ddecc60f053fc5df03c0 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 6 Feb 2021 17:04:20 +0100 Subject: [PATCH] src/filegen.h: data_check() can also update time --- src/filegen.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/filegen.h b/src/filegen.h index 0428f51f..415d9067 100644 --- a/src/filegen.h +++ b/src/filegen.h @@ -91,7 +91,7 @@ struct file_recovery_struct uint64_t extra; /* extra bytes between offset_ok and offset_error */ uint64_t calculated_file_size; data_check_t (*data_check)(const unsigned char*buffer, const unsigned int buffer_size, file_recovery_t *file_recovery); - /* data_check modifies file_recovery->calculated_file_size, it can also update data_check, file_check, offset_error */ + /* data_check modifies file_recovery->calculated_file_size, it can also update data_check, file_check, offset_error, time */ void (*file_check)(file_recovery_t *file_recovery); void (*file_rename)(file_recovery_t *file_recovery); uint64_t checkpoint_offset; @@ -138,7 +138,8 @@ typedef struct (file_recovery->extension == \null || valid_read_string(file_recovery->extension)) && (file_recovery->data_check == \null || \valid_function(file_recovery->data_check)) && (file_recovery->file_check == \null || \valid_function(file_recovery->file_check)) && - (file_recovery->file_rename == \null || \valid_function(file_recovery->file_rename)) + (file_recovery->file_rename == \null || \valid_function(file_recovery->file_rename)) && + \separated(file_recovery, file_recovery->extension) ); @*/ /*@