summaryrefslogtreecommitdiff
path: root/desktop/cookie_manager.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-02-24 08:49:50 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-02-24 08:49:50 +0000
commit214f436b072e035aa6a53f3c4d62028cd56753fc (patch)
treefaa7fd08a548ad1ea362e284426ffdadbfa71682 /desktop/cookie_manager.c
parent34e61df8ebe237d6862e1c63772a1aae40d81320 (diff)
downloadnetsurf-214f436b072e035aa6a53f3c4d62028cd56753fc.tar.gz
netsurf-214f436b072e035aa6a53f3c4d62028cd56753fc.tar.bz2
Cookie manager: Add API to set the search string.
Diffstat (limited to 'desktop/cookie_manager.c')
-rw-r--r--desktop/cookie_manager.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/cookie_manager.c b/desktop/cookie_manager.c
index a2aab8e9f..3e0417f23 100644
--- a/desktop/cookie_manager.c
+++ b/desktop/cookie_manager.c
@@ -545,6 +545,19 @@ void cookie_manager_remove(const struct cookie_data *data)
}
+/* exported interface documented in cookie_manager.h */
+nserror cookie_manager_set_search_string(
+ const char *string)
+{
+ /* If we don't have a cookie manager at the moment, just return */
+ if (cm_ctx.tree == NULL) {
+ return NSERROR_NOT_FOUND;
+ }
+
+ return treeview_set_search_string(cm_ctx.tree, string);
+}
+
+
/**
* Initialise the treeview entry feilds
*