diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 15:06:10 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-04 16:37:25 +0200 |
commit | e2adac72cc15e47b2aa47c1bea07c61a60c547d7 (patch) | |
tree | 7501ded27e719fb1bc1e857361c6d46ac65ecb3f /fiv-thumbnail.h | |
parent | 3ddb0cf20568b84e053b1608d22d55657e8ce5dd (diff) | |
download | fiv-e2adac72cc15e47b2aa47c1bea07c61a60c547d7.tar.gz fiv-e2adac72cc15e47b2aa47c1bea07c61a60c547d7.tar.xz fiv-e2adac72cc15e47b2aa47c1bea07c61a60c547d7.zip |
Use the model's mtime for validating thumbnails
Saves a syscall, generalizes fiv_thumbnail_lookup(),
wastes a tiny bit of memory per entry.
Diffstat (limited to 'fiv-thumbnail.h')
-rw-r--r-- | fiv-thumbnail.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fiv-thumbnail.h b/fiv-thumbnail.h index 101e8a8..822e609 100644 --- a/fiv-thumbnail.h +++ b/fiv-thumbnail.h @@ -62,7 +62,8 @@ gboolean fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size, /// Retrieves a thumbnail of the most appropriate quality and resolution /// for the target file. -cairo_surface_t *fiv_thumbnail_lookup(GFile *target, FivThumbnailSize size); +cairo_surface_t *fiv_thumbnail_lookup( + char *uri, gint64 mtime_msec, FivThumbnailSize size); /// Invalidate the wide thumbnail cache. May write to standard streams. void fiv_thumbnail_invalidate(void); |