From 18081664eb4ccbbaa570399c0c99d33d93a70ca5 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 23:02:49 +0000 Subject: Provide API to enable a handle's callback to be replaced svn path=/trunk/netsurf/; revision=10376 --- content/hlcache.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'content/hlcache.h') diff --git a/content/hlcache.h b/content/hlcache.h index 1c4cc7b2f..afc755e42 100644 --- a/content/hlcache.h +++ b/content/hlcache.h @@ -117,6 +117,17 @@ nserror hlcache_handle_release(hlcache_handle *handle); */ nserror hlcache_handle_abort(hlcache_handle *handle); +/** + * Replace a high-level cache handle's callback + * + * \param handle Handle to replace callback of + * \param cb New callback routine + * \param pw Private data for callback + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror hlcache_handle_replace_callback(hlcache_handle *handle, + hlcache_handle_callback cb, void *pw); + /** * Retrieve a content object from a cache handle * -- cgit v1.2.3