24#ifndef NETSURF_CONTENT_HLCACHE_H_
25#define NETSURF_CONTENT_HLCACHE_H_
Content handling interface.
content_type
The type of a content.
content_msg
Used in callbacks to indicate what has occurred.
nserror
Enumeration of error codes.
struct hlcache_child_context hlcache_child_context
Context for retrieving a child object.
struct hlcache_event hlcache_event
High-level cache event.
nserror hlcache_initialise(const struct hlcache_parameters *hlcache_parameters)
Initialise the high-level cache, preparing the llcache also.
nserror(* hlcache_handle_callback)(hlcache_handle *handle, const hlcache_event *event, void *pw)
Client callback for high-level cache events.
struct content * hlcache_handle_get_content(const hlcache_handle *handle)
Retrieve a content object from a cache handle.
void hlcache_finalise(void)
Finalise the high-level cache, destroying any remaining contents.
hlcache_retrieve_flag
Flags for high-level cache object retrieval.
@ HLCACHE_RETRIEVE_SNIFF_TYPE
@ HLCACHE_RETRIEVE_MAY_DOWNLOAD
It's permitted to convert this request into a download.
void hlcache_stop(void)
Stop the high-level cache periodic functionality so that the exit sequence can run.
nserror hlcache_handle_abort(hlcache_handle *handle)
Abort a high-level cache fetch.
nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result)
Clone a high level cache handle.
nserror hlcache_handle_replace_callback(hlcache_handle *handle, hlcache_handle_callback cb, void *pw)
Replace a high-level cache handle's callback.
nserror hlcache_handle_release(hlcache_handle *handle)
Release a high-level cache handle.
nserror hlcache_handle_retrieve(nsurl *url, uint32_t flags, nsurl *referer, llcache_post_data *post, hlcache_handle_callback cb, void *pw, hlcache_child_context *child, content_type accepted_types, hlcache_handle **result)
Retrieve a high-level cache handle for an object.
Low-level resource cache (interface)
NetSurf URL handling (interface).
struct nsurl nsurl
NetSurf URL object.
Content which corresponds to a single URL.
Context for retrieving a child object.
bool quirks
Whether parent is quirky.
const char * charset
Charset of parent.
content_msg type
Event type.
union content_msg_data data
Event data.
unsigned int bg_clean_time
How frequently the background cache clean process is run (ms)
struct llcache_parameters llcache
Parameters to configure the low level cache.
POST data object for low-level cache requests.
Extra data for some content_msg messages.