From 07c2add5cc28efa18f7bcaae239879a3bc12a700 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 16 Jul 2013 13:13:33 +0100 Subject: Add function to add to global history. Fix add_entry to actually add new entry after removing an existing one. Implement directory deletion. --- desktop/global_history.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'desktop/global_history.h') diff --git a/desktop/global_history.h b/desktop/global_history.h index 591b1fe6f..3863e8151 100644 --- a/desktop/global_history.h +++ b/desktop/global_history.h @@ -22,6 +22,7 @@ #include #include "desktop/core_window.h" +#include "utils/nsurl.h" /** @@ -50,6 +51,16 @@ nserror global_history_init(struct core_window_callback_table *cw_t, */ nserror global_history_fini(void); +/** + * Add an entry to the global history. + * + * If the URL already exists in the global history, the old node is removed. + * + * \param url URL for node being added + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror global_history_add(nsurl *url); + /** * Redraw the global history. * -- cgit v1.2.3