From eb8740675823a364f319decd3b6e0615607fdc6b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 20 Nov 2014 22:28:19 +0000 Subject: update entry points to backing store ready for allowing differing object lifetimes --- content/no_backing_store.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'content/no_backing_store.c') diff --git a/content/no_backing_store.c b/content/no_backing_store.c index 192101522..917d68a11 100644 --- a/content/no_backing_store.c +++ b/content/no_backing_store.c @@ -57,12 +57,30 @@ static nserror invalidate(nsurl *url) return NSERROR_NOT_FOUND; } +/** + * release a previously fetched or stored memory object. + * + * if the BACKING_STORE_ALLOC flag was used with the fetch or + * store operation for this url the returned storage is + * unreferenced. When the reference count drops to zero the + * storage is released. + * + * @param url The url is used as the unique primary key to invalidate. + * @param[in] flags The flags to control how the object data is released. + * @return NSERROR_OK on success or error code on faliure. + */ +static nserror release(nsurl *url, enum backing_store_flags flags) +{ + return NSERROR_NOT_FOUND; +} + static struct gui_llcache_table llcache_table = { .initialise = initialise, .finalise = finalise, .store = store, .fetch = fetch, .invalidate = invalidate, + .release = release, }; struct gui_llcache_table *null_llcache_table = &llcache_table; -- cgit v1.2.3