summaryrefslogtreecommitdiff
path: root/desktop/hotlist.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-23 18:26:18 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-08-23 18:26:18 +0100
commit44e33001d7104cc7ec38a654f358392bf6240ad3 (patch)
tree925ff999eca3822336103891626718b48e3629fa /desktop/hotlist.h
parent184650c7d84cd403060ecfe3729cc7dbfa0e43c9 (diff)
downloadnetsurf-44e33001d7104cc7ec38a654f358392bf6240ad3.tar.gz
Add function to remove any entries with given URL.
Diffstat (limited to 'desktop/hotlist.h')
-rw-r--r--desktop/hotlist.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/desktop/hotlist.h b/desktop/hotlist.h
index 1271b623e..d55301e12 100644
--- a/desktop/hotlist.h
+++ b/desktop/hotlist.h
@@ -54,12 +54,12 @@ nserror hotlist_init(struct core_window_callback_table *cw_t,
nserror hotlist_fini(const char *path);
/**
- * Add an entry to the hotlist.
+ * Add an entry to the hotlist for given URL.
*
* \param url URL for node being added
* \return NSERROR_OK on success, appropriate error otherwise
*/
-nserror hotlist_add(nsurl *url);
+nserror hotlist_add_url(nsurl *url);
/**
* Check whether given URL is present in hotlist
@@ -70,6 +70,13 @@ nserror hotlist_add(nsurl *url);
bool hotlist_has_url(nsurl *url);
/**
+ * Remove any entries matching the given URL from the hotlist
+ *
+ * \param url Address to look for in hotlist
+ */
+void hotlist_remove_url(nsurl *url);
+
+/**
* Redraw the hotlist.
*
* \param x X coordinate to render treeview at