summaryrefslogtreecommitdiff
path: root/content/backing_store.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-27 09:29:49 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-31 20:56:55 +0100
commit980e28d916e22d33ec8cea3aa57fdc49d83f1b9e (patch)
tree15fe799458a0b1c3eab4ae28779c35d3048189e6 /content/backing_store.h
parent1d03f34d62ef90fcdd5ddab25547b208fd9ff502 (diff)
downloadnetsurf-980e28d916e22d33ec8cea3aa57fdc49d83f1b9e.tar.gz
netsurf-980e28d916e22d33ec8cea3aa57fdc49d83f1b9e.tar.bz2
Change backing store fetch operation to always perform the allocations
The fetch API previously allowed for the caller to supply the storage, this was never used and was preventing the refactoring necessary for small black storage to be available.
Diffstat (limited to 'content/backing_store.h')
-rw-r--r--content/backing_store.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/content/backing_store.h b/content/backing_store.h
index 312a2b02e..4e29511cb 100644
--- a/content/backing_store.h
+++ b/content/backing_store.h
@@ -83,10 +83,8 @@ struct gui_llcache_table {
/**
* Retrive an object from the backing store.
*
- * The caller may provide a buffer in \a data and a buffer
- * length in \a datalen. Alternatively the backing store will
- * allocate its own buffer if \a data is NULL, this memory is
- * managed by the backing store.
+ * The backing store will manage its own memory and the
+ * allocations returned in \a data *must* not be altered.
*
* The caller must assume nothing about the backing store
* allocated buffers and the storage and *must* be freed by
@@ -94,8 +92,8 @@ struct gui_llcache_table {
*
* @param[in] url The url is used as the unique primary key for the data.
* @param[in] flags The flags to control how the object is retrived.
- * @param[in,out] data The retrived objects data.
- * @param[in,out] datalen The length of the \a data retrieved.
+ * @param[out] data The retrived objects data.
+ * @param[out] datalen The length of the \a data retrieved.
* @return NSERROR_OK on success or error code on faliure.
*/
nserror (*fetch)(struct nsurl *url, enum backing_store_flags flags,