aboutsummaryrefslogtreecommitdiff
path: root/include/file_processor.h
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2026-03-01 21:10:48 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2026-03-01 21:10:48 +0100
commitb551c441e10c94ccfe188d9bcc783efe78cd5083 (patch)
treeb5e88509bd6155fb7af9a3e54efcf66adef541a0 /include/file_processor.h
parent951ba68794bc228e00c40d36cca44c65da69603c (diff)
downloadduplicate_finder-b551c441e10c94ccfe188d9bcc783efe78cd5083.tar.gz
duplicate_finder-b551c441e10c94ccfe188d9bcc783efe78cd5083.tar.bz2
file_processor: Skip files already in the DB with same size and mtime
Diffstat (limited to 'include/file_processor.h')
-rw-r--r--include/file_processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/file_processor.h b/include/file_processor.h
index 06b6d1d..e8f66f2 100644
--- a/include/file_processor.h
+++ b/include/file_processor.h
@@ -7,6 +7,8 @@
#ifndef FILE_PROCESSOR_H
#define FILE_PROCESSOR_H
+#include <stdint.h>
+#include <time.h>
#include <sys/stat.h>
#define DF_BYTE_SIZE_256 32
@@ -44,7 +46,9 @@ struct df_fileinfo {
unsigned char sha512[DF_BYTE_SIZE_512]; /**< The SHA512 hash in binary form. */
#endif
struct df_hashstrings hashes; /**< The BLAKE2-512, SHA256 and SHA512 hash of the file */
+ time_t last_seen; /**< time_t value when the file was last seen, filled by the database */
struct stat statbuf; /**< Result of lstat() call. Symlinks are to be ignored and filtered out earlier. */
+ int64_t id; /**< to be set only when filled by the database */
};