Cookie manager: Add API to set the search string.

This commit is contained in:
Michael Drake 2020-02-24 08:49:50 +00:00
parent 34e61df8eb
commit 214f436b07
2 changed files with 22 additions and 0 deletions

View File

@ -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
*

View File

@ -75,6 +75,15 @@ bool cookie_manager_add(const struct cookie_data *data);
*/
void cookie_manager_remove(const struct cookie_data *data);
/**
* Set the cookie manager search string.
*
* \param string Sering to set as search string.
* \return NSERROR_OK on success, appropriate error otherwise
*/
nserror cookie_manager_set_search_string(
const char *string);
/**
* Redraw the cookies manager.
*