summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/store.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mupdf/fitz/store.h b/include/mupdf/fitz/store.h
index 5b048ed0..7dff6c30 100644
--- a/include/mupdf/fitz/store.h
+++ b/include/mupdf/fitz/store.h
@@ -243,6 +243,18 @@ void fz_empty_store(fz_context *ctx);
int fz_store_scavenge(fz_context *ctx, size_t size, int *phase);
/*
+ fz_store_scavenge_external: External function for callers to use
+ to scavenge while trying allocations.
+
+ size: The number of bytes we are trying to have free.
+
+ phase: What phase of the scavenge we are in. Updated on exit.
+
+ Returns non zero if we managed to free any memory.
+*/
+int fz_store_scavenge_external(fz_context *ctx, size_t size, int *phase);
+
+/*
fz_shrink_store: Evict items from the store until the total size of
the objects in the store is reduced to a given percentage of its
current size.