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/database_interaction.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/database_interaction.h') diff --git a/include/database_interaction.h b/include/database_interaction.h index 5ff6f66..c236cf2 100644 --- a/include/database_interaction.h +++ b/include/database_interaction.h @@ -29,8 +29,11 @@ int dbi_insert_hashes(const char *blake2, const char *sha256, const char *sha512 int64_t dbi_select_fileinfo_by_hash_path_filename_ids(int64_t hash_id, int64_t path_id, int64_t filename_id); int64_t dbi_select_fileinfo_by_path_filename_ids(int64_t pname_id, int64_t fname_id); +int dbi_select_fileinfo_by_id_resolved(int64_t id, struct df_fileinfo *fi); int dbi_insert_fileinfo(struct df_fileinfo *fi); +int dbi_fill_fileinfo(struct df_fileinfo *fi); + int dbi_update_fileinfo_last_seen(int64_t id); int dbi_update_fileinfo_complete(struct df_fileinfo *fi, int64_t existing_id); -- cgit v1.3