aboutsummaryrefslogtreecommitdiff
path: root/include/file_processor.h
diff options
context:
space:
mode:
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 */
};