diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-03-28 23:25:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-03-28 23:25:21 +0000 |
commit | 57253cdd5863787ea77f5eea90d752f3e0203166 (patch) | |
tree | d0effc0ca20ed59bb3413ea3f627cb9e721e2283 /content/llcache.h | |
parent | 5b5e15c8451c8ee059e9b790adb45fffdc33f886 (diff) | |
download | netsurf-57253cdd5863787ea77f5eea90d752f3e0203166.tar.gz netsurf-57253cdd5863787ea77f5eea90d752f3e0203166.tar.bz2 |
Fixup per review
svn path=/trunk/netsurf/; revision=10196
Diffstat (limited to 'content/llcache.h')
-rw-r--r-- | content/llcache.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/content/llcache.h b/content/llcache.h index b2c856f3b..7c3fad6de 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -81,10 +81,16 @@ typedef nserror (*llcache_handle_callback)(llcache_handle *handle, const llcache_event *event, void *pw); /** Flags for low-level cache object retrieval */ -#define LLCACHE_RETRIEVE_FORCE_FETCH (1 << 0) /* Force a new fetch */ -#define LLCACHE_RETRIEVE_VERIFIABLE (1 << 1) /* Requested URL was verified */ -#define LLCACHE_RETRIEVE_SNIFF_TYPE (1 << 2) /* Permit content-type sniffing */ -#define LLCACHE_RETRIEVE_NO_ERROR_PAGES (1 << 3) /* No error pages */ +enum llcache_retrieve_flag { + /** Force a new fetch */ + LLCACHE_RETRIEVE_FORCE_FETCH = (1 << 0), + /** Requested URL was verified */ + LLCACHE_RETRIEVE_VERIFIABLE = (1 << 1), + /** Permit content-type sniffing */ + LLCACHE_RETRIEVE_SNIFF_TYPE = (1 << 2), + /**< No error pages */ + LLCACHE_RETRIEVE_NO_ERROR_PAGES = (1 << 3) +}; /** Low-level cache query types */ typedef enum { @@ -150,7 +156,9 @@ typedef nserror (*llcache_query_callback)(const llcache_query *query, void *pw, nserror llcache_initialise(llcache_query_callback cb, void *pw); /** - * Poll the low-level cache + * Cause the low-level cache to emit any pending notifications + * and attempt to clean the cache. No guarantee is made about + * what, if any, cache cleaning will occur. * * \return NSERROR_OK on success, appropriate error otherwise. */ @@ -221,6 +229,7 @@ const uint8_t *llcache_handle_get_source_data(const llcache_handle *handle, * \todo Forcing the client to parse the header value seems wrong. * Better would be to return the actual value part and an array of * key-value pairs for any additional parameters. + * \todo Deal with multiple headers of the same key (e.g. Set-Cookie) */ const char *llcache_handle_get_header(const llcache_handle *handle, const char *key); |