summaryrefslogtreecommitdiffstats
path: root/qthelperfromc.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-09-17 16:56:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-17 08:56:25 -0700
commitd0145621a1d6a76922cc271208e07ed5827a6590 (patch)
tree1cafd5ac0cfc8ea124d78872cebd67ca964bfbae /qthelperfromc.h
parent2d376de68ddde1bfc159f0e182120c1e8bc62610 (diff)
downloadsubsurface-d0145621a1d6a76922cc271208e07ed5827a6590.tar.gz
Hash images upon loading divelog file rather than when loading image
Up to now, we only computed hashes of images upon actually displaying the images. With this patch we start to compute hashes once we load the xml or from git. This happens in the background, so the user should note an increased CPU load only once per divelog. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelperfromc.h')
-rw-r--r--qthelperfromc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qthelperfromc.h b/qthelperfromc.h
index e48e3b1c4..d64bfc04a 100644
--- a/qthelperfromc.h
+++ b/qthelperfromc.h
@@ -12,5 +12,6 @@ char *hashstring(char *filename);
bool picture_exists(struct picture *picture);
const char *local_file_path(struct picture *picture);
void savePictureLocal(struct picture *picture, const char *data, int len);
+void cache_picture(struct picture *picture);
#endif // QTHELPERFROMC_H