desktop: Expose llcache query handler temporarily

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-08-04 10:47:00 +01:00
parent 6b4610edc9
commit 3bd7a2ddd6
2 changed files with 17 additions and 1 deletions

View File

@ -359,4 +359,11 @@ nserror browser_window_history_get_scroll(struct browser_window *bw,
void browser_window_history_destroy(struct browser_window *bw);
/** \todo QUERY - Remove this include */
#include "content/llcache.h"
/** \todo QUERY - Remove this import */
nserror netsurf_llcache_query_handler(
const llcache_query *query,
void *pw, llcache_query_response cb, void *cbpw);
#endif

View File

@ -52,6 +52,10 @@
#include "desktop/gui_internal.h"
#include "netsurf/netsurf.h"
/** \todo QUERY - Remove this import later */
#include "desktop/browser_private.h"
/** speculative pre-conversion small image size
*
* Experimenting by visiting every page from default page in order and
@ -293,13 +297,18 @@ static nserror netsurf__handle_login(const llcache_query *query,
/**
* Dispatch a low-level cache query to the frontend
*
* \todo QUERY - This should end up as part of browser_window_callback
*
* NOTE: Right now this is exported so that it can be invoked from the
* browser window callback
*
* \param query Query descriptor
* \param pw Private data
* \param cb Continuation callback
* \param cbpw Private data for continuation
* \return NSERROR_OK
*/
static nserror netsurf_llcache_query_handler(const llcache_query *query,
nserror netsurf_llcache_query_handler(const llcache_query *query,
void *pw, llcache_query_response cb, void *cbpw)
{
nserror res = NSERROR_OK;