summaryrefslogtreecommitdiff
path: root/content/llcache.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-16 20:42:10 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-16 20:42:10 +0000
commit44552e74924519702ba96c01259c601ec4dd4113 (patch)
treef25cb1f82d2b9b7afb349014c69dcce9b6ca67a8 /content/llcache.c
parent9c1ff9fbc1042402610702f826b7a7ed282e98df (diff)
downloadnetsurf-44552e74924519702ba96c01259c601ec4dd4113.tar.gz
netsurf-44552e74924519702ba96c01259c601ec4dd4113.tar.bz2
Provide API to invalidate llcache object cache control data
svn path=/trunk/netsurf/; revision=10411
Diffstat (limited to 'content/llcache.c')
-rw-r--r--content/llcache.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/llcache.c b/content/llcache.c
index a6ef49370..2d8472b0c 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -398,6 +398,17 @@ nserror llcache_handle_force_stream(llcache_handle *handle)
}
/* See llcache.h for documentation */
+nserror llcache_handle_invalidate_cache_data(llcache_handle *handle)
+{
+ if (handle->object != NULL && handle->object->fetch.fetch == NULL) {
+ memset(&handle->object->cache, 0,
+ sizeof(llcache_cache_control));
+ }
+
+ return NSERROR_OK;
+}
+
+/* See llcache.h for documentation */
const char *llcache_handle_get_url(const llcache_handle *handle)
{
return handle->object != NULL ? handle->object->url : NULL;