summaryrefslogtreecommitdiff
path: root/source/fitz/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/store.c')
-rw-r--r--source/fitz/store.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/fitz/store.c b/source/fitz/store.c
index f94a8aa2..f0d7c795 100644
--- a/source/fitz/store.c
+++ b/source/fitz/store.c
@@ -776,6 +776,17 @@ scavenge(fz_context *ctx, size_t tofree)
return count != 0;
}
+int fz_store_scavenge_external(fz_context *ctx, size_t size, int *phase)
+{
+ int ret;
+
+ fz_lock(ctx, FZ_LOCK_ALLOC);
+ ret = fz_store_scavenge(ctx, size, phase);
+ fz_unlock(ctx, FZ_LOCK_ALLOC);
+
+ return ret;
+}
+
int fz_store_scavenge(fz_context *ctx, size_t size, int *phase)
{
fz_store *store;