From 26df6ab7dd8fda3bcb1c7bca29608e998fd409f9 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 23 May 2020 20:55:36 +0100 Subject: misc: Add a present_cookies to guit->misc and use it In order that we present the cookies window usefully, change browser_window to request presentation of the cookies window via a gui misc callback. Signed-off-by: Daniel Silverstone --- include/netsurf/misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/netsurf/misc.h b/include/netsurf/misc.h index ee5d00d3d..00ac705cc 100644 --- a/include/netsurf/misc.h +++ b/include/netsurf/misc.h @@ -116,6 +116,14 @@ struct gui_misc_table { */ void (*pdf_password)(char **owner_pass, char **user_pass, char *path); + /** + * Request that the cookie manager be displayed + * + * \param search_term The search term to be set (NULL if no search) + * + * \return NSERROR_OK on success + */ + nserror (*present_cookies)(const char *search_term); }; #endif -- cgit v1.2.3