summaryrefslogtreecommitdiffstats
path: root/thumbs.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-01-04 21:19:26 +0100
committerBert Münnich <ber.t@posteo.de>2015-01-04 21:24:43 +0100
commit47af0dd7b5e154fb64d8b4d6c5302ba905055799 (patch)
tree6d8d46f14e7330b0b18943b649f82c841da3fb5f /thumbs.h
parent9b9294bae67da4e0388e7c31d0063f4e114aa1f8 (diff)
downloadnsxiv-47af0dd7b5e154fb64d8b4d6c5302ba905055799.tar.zst
Cache out of view thumbnails in the background
Diffstat (limited to 'thumbs.h')
-rw-r--r--thumbs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/thumbs.h b/thumbs.h
index f3121e5..cda2777 100644
--- a/thumbs.h
+++ b/thumbs.h
@@ -34,10 +34,11 @@ typedef struct {
} thumb_t;
typedef struct {
- const fileinfo_t *files;
+ fileinfo_t *files;
thumb_t *thumbs;
const int *cnt;
int *sel;
+ int initnext;
int loadnext;
int first, end;
int r_first, r_end;
@@ -56,10 +57,10 @@ typedef struct {
void tns_clean_cache(tns_t*);
-void tns_init(tns_t*, const fileinfo_t*, const int*, int*, win_t*);
+void tns_init(tns_t*, fileinfo_t*, const int*, int*, win_t*);
void tns_free(tns_t*);
-bool tns_load(tns_t*, int, bool);
+bool tns_load(tns_t*, int, bool, bool);
void tns_unload(tns_t*, int);
void tns_render(tns_t*);