From 19052001541aeac269b846d2a81e7f78e7c26c2d Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 4 Aug 2019 10:47:34 +0100 Subject: Add content handlers for queries Signed-off-by: Daniel Silverstone --- desktop/searchweb.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'desktop/searchweb.c') diff --git a/desktop/searchweb.c b/desktop/searchweb.c index c07cac9d5..fed6f3e75 100644 --- a/desktop/searchweb.c +++ b/desktop/searchweb.c @@ -307,6 +307,16 @@ search_web_ico_callback(hlcache_handle *ico, provider->ico_handle = NULL; break; + case CONTENT_MSG_QUERY: + /** \todo QUERY - Decide what is right here */ + /* For now, the only safe decision is to cancel the fetch */ + event->data.query_msg->cb(false, event->data.query_msg->cb_pw); + return NSERROR_OK; + + case CONTENT_MSG_QUERY_FINISHED: + /** \todo QUERY - Decide what is right here */ + return NSERROR_OK; + default: break; } @@ -467,6 +477,16 @@ default_ico_callback(hlcache_handle *ico, ctx->default_ico_handle = NULL; break; + case CONTENT_MSG_QUERY: + /** \todo QUERY - Decide what is right here */ + /* For now, the only safe decision is to cancel the fetch */ + event->data.query_msg->cb(false, event->data.query_msg->cb_pw); + return NSERROR_OK; + + case CONTENT_MSG_QUERY_FINISHED: + /** \todo QUERY - Decide what is right here */ + return NSERROR_OK; + default: break; } -- cgit v1.2.3