summaryrefslogtreecommitdiff
path: root/desktop/global_history.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/global_history.h')
-rw-r--r--desktop/global_history.h11
1 files changed, 11 insertions, 0 deletions
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 <stdbool.h>
#include "desktop/core_window.h"
+#include "utils/nsurl.h"
/**
@@ -51,6 +52,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.
*
* \param x X coordinate to render treeview at