summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-23 20:55:36 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-23 21:18:46 +0100
commit26df6ab7dd8fda3bcb1c7bca29608e998fd409f9 (patch)
tree05bc348eef36522927142ae4f7e06367b777f033 /include
parentcafb428a49ad685d14f72c1e2acbf420389150d5 (diff)
downloadnetsurf-26df6ab7dd8fda3bcb1c7bca29608e998fd409f9.tar.gz
netsurf-26df6ab7dd8fda3bcb1c7bca29608e998fd409f9.tar.bz2
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'include')
-rw-r--r--include/netsurf/misc.h8
1 files changed, 8 insertions, 0 deletions
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