summaryrefslogtreecommitdiff
path: root/image/image_cache.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-10-10 22:41:31 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-10-10 22:41:31 +0000
commit56e7b234152e5bd792d2885db2eabab008064b5e (patch)
treea430df5ca88de81f7c92c3d0cc709b27e14bf96e /image/image_cache.h
parente1e88e5f981694342e4eadf6558022cf52f86fa6 (diff)
downloadnetsurf-56e7b234152e5bd792d2885db2eabab008064b5e.tar.gz
netsurf-56e7b234152e5bd792d2885db2eabab008064b5e.tar.bz2
add about:imagecache some of teh implementation needs cleaning up
svn path=/trunk/netsurf/; revision=13030
Diffstat (limited to 'image/image_cache.h')
-rw-r--r--image/image_cache.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/image/image_cache.h b/image/image_cache.h
index e879c740d..e1ae24e3a 100644
--- a/image/image_cache.h
+++ b/image/image_cache.h
@@ -96,7 +96,30 @@ struct bitmap *image_cache_find_bitmap(struct content *c);
*/
bool image_cache_speculate(struct content *c);
-/* Image content handler generic cache callbacks */
+/**
+ * Fill a buffer with an option using a format.
+ *
+ * The format string is copied into the output buffer with the
+ * following replaced:
+ * %e - The entry number
+ * %k - The content key
+ * %r - The number of redraws of this bitmap
+ * %c - The number of times this bitmap has been converted
+ * %s - The size of the current bitmap allocation
+ *
+ * \param string The buffer in which to place the results.
+ * \param size The size of the string buffer.
+ * \param entryn The opaque entry number.
+ * \param fmt The format string.
+ * \return The number of bytes written to \a string or -1 on error
+ */
+int image_cache_snentryf(char *string, size_t size, unsigned int entryn,
+ const char *fmt);
+
+/** cache summary */
+int image_cache_snsummaryf(char *string, size_t size, const char *fmt);
+
+/********* Image content handler generic cache callbacks ************/
/** Generic content redraw callback
*