summaryrefslogtreecommitdiffstats
path: root/src/filegen.h
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2015-06-12 19:49:50 +0200
committerChristophe Grenier <[email protected]>2015-06-12 19:49:50 +0200
commit04d653114489586908a37b6f405340fdcb9a3824 (patch)
tree6ecd19bcbadcfdb1b575402ff5856991f80cbbee /src/filegen.h
parent56e27e660059e73f1315f83c660fc358c02e41d7 (diff)
PhotoRec: log the correct filename if file has been renamed
Diffstat (limited to 'src/filegen.h')
-rw-r--r--src/filegen.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filegen.h b/src/filegen.h
index c601400e..d65e2f62 100644
--- a/src/filegen.h
+++ b/src/filegen.h
@@ -79,7 +79,7 @@ struct file_recovery_struct
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 but not must alter file_recovery->file_size */
void (*file_check)(file_recovery_t *file_recovery);
- void (*file_rename)(const char *old_filename);
+ void (*file_rename)(file_recovery_t *file_recovery);
uint64_t checkpoint_offset;
int checkpoint_status; /* 0=suspend at offset_checkpoint if offset_checkpoint>0, 1=resume at offset_checkpoint */
unsigned int blocksize;
@@ -135,8 +135,8 @@ void register_header_check(const unsigned int offset, const void *value, const u
const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new),
file_stat_t *file_stat);
file_stat_t * init_file_stats(file_enable_t *files_enable);
-void file_rename(const char *old_filename, const void *buffer, const int buffer_size, const int offset, const char *new_ext, const int force_ext);
-void file_rename_unicode(const char *old_filename, const void *buffer, const int buffer_size, const int offset, const char *new_ext, const int force_ext);
+int file_rename(file_recovery_t *file_recovery, const void *buffer, const int buffer_size, const int offset, const char *new_ext, const int force_ext);
+int file_rename_unicode(file_recovery_t *file_recovery, const void *buffer, const int buffer_size, const int offset, const char *new_ext, const int force_ext);
#ifdef __cplusplus
} /* closing brace for extern "C" */