summaryrefslogtreecommitdiff
path: root/content/llcache.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-05 21:35:38 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-05 21:35:38 +0000
commit2748fe4f6483f8cfb3c4f91a01e8d897b7d1ac47 (patch)
tree0647010a17aee4237d125e42cc8bd726ec0573ae /content/llcache.h
parent89daef932a9bbc46e276f6d306b0aabf109806f9 (diff)
downloadnetsurf-2748fe4f6483f8cfb3c4f91a01e8d897b7d1ac47.tar.gz
netsurf-2748fe4f6483f8cfb3c4f91a01e8d897b7d1ac47.tar.bz2
Make downloads work again.
svn path=/trunk/netsurf/; revision=10243
Diffstat (limited to 'content/llcache.h')
-rw-r--r--content/llcache.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/content/llcache.h b/content/llcache.h
index 434d0b641..3c965d3dc 100644
--- a/content/llcache.h
+++ b/content/llcache.h
@@ -82,6 +82,9 @@ typedef nserror (*llcache_handle_callback)(llcache_handle *handle,
/** Flags for low-level cache object retrieval */
enum llcache_retrieve_flag {
+ /* Note: We're permitted a maximum of 16 flags which must reside in the
+ * bottom 16 bits of the flags word. See hlcache.h for further details.
+ */
/** Force a new fetch */
LLCACHE_RETRIEVE_FORCE_FETCH = (1 << 0),
/** Requested URL was verified */
@@ -89,7 +92,9 @@ enum llcache_retrieve_flag {
/** Permit content-type sniffing */
LLCACHE_RETRIEVE_SNIFF_TYPE = (1 << 2),
/**< No error pages */
- LLCACHE_RETRIEVE_NO_ERROR_PAGES = (1 << 3)
+ LLCACHE_RETRIEVE_NO_ERROR_PAGES = (1 << 3),
+ /**< Stream data (implies that object is not cacheable) */
+ LLCACHE_RETRIEVE_STREAM_DATA = (1 << 4)
};
/** Low-level cache query types */
@@ -219,6 +224,14 @@ nserror llcache_handle_clone(llcache_handle *handle, llcache_handle **result);
nserror llcache_handle_abort(llcache_handle *handle);
/**
+ * Force a low-level cache handle into streaming mode
+ *
+ * \param handle Handle to stream
+ * \return NSERROR_OK on success, appropriate error otherwise
+ */
+nserror llcache_handle_force_stream(llcache_handle *handle);
+
+/**
* Retrieve the post-redirect URL of a low-level cache object
*
* \param handle Handle to retrieve URL from