From e2adac72cc15e47b2aa47c1bea07c61a60c547d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 4 Jun 2022 15:06:10 +0200 Subject: Use the model's mtime for validating thumbnails Saves a syscall, generalizes fiv_thumbnail_lookup(), wastes a tiny bit of memory per entry. --- fiv-io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fiv-io.h') diff --git a/fiv-io.h b/fiv-io.h index ed25d67..5a3ba27 100644 --- a/fiv-io.h +++ b/fiv-io.h @@ -123,8 +123,8 @@ gboolean fiv_io_model_open(FivIoModel *self, GFile *directory, GError **error); GFile *fiv_io_model_get_location(FivIoModel *self); typedef struct { - gchar *uri; ///< GIO URI - gchar *collate_key; ///< Collate key for the filename + char *uri; ///< GIO URI + char *collate_key; ///< Collate key for the filename gint64 mtime_msec; ///< Modification time in milliseconds } FivIoModelEntry; -- cgit v1.2.3