From b551c441e10c94ccfe188d9bcc783efe78cd5083 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Sun, 1 Mar 2026 21:10:48 +0100 Subject: file_processor: Skip files already in the DB with same size and mtime --- include/file_processor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/file_processor.h') 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 +#include #include #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 */ }; -- cgit v1.3