summaryrefslogtreecommitdiff
path: root/desktop/global_history.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-09-13 14:24:25 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-09-13 14:24:25 +0100
commit951ad51cd45ba2e5f49fab169ccbabc8f98a5185 (patch)
tree02b09d86bc9477e42e8c6c81bb77a02d844ba9ad /desktop/global_history.h
parent653cf8fa1fe9796b48988ac8fd726056a55c70f4 (diff)
downloadnetsurf-951ad51cd45ba2e5f49fab169ccbabc8f98a5185.tar.gz
netsurf-951ad51cd45ba2e5f49fab169ccbabc8f98a5185.tar.bz2
Add functions to get first selected hotlist/global_history node data.
Diffstat (limited to 'desktop/global_history.h')
-rw-r--r--desktop/global_history.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/global_history.h b/desktop/global_history.h
index 4ebe13980..7c49cfcb7 100644
--- a/desktop/global_history.h
+++ b/desktop/global_history.h
@@ -110,6 +110,15 @@ void global_history_keypress(uint32_t key);
bool global_history_has_selection(void);
/**
+ * Get the first selected node
+ *
+ * \param url Updated to the selected entry's address, or NULL
+ * \param title Updated to the selected entry's title, or NULL
+ * \return true iff global history has a selection
+ */
+bool global_history_get_selection(nsurl **url, const char **title);
+
+/**
* Expand the treeview's nodes
*
* \param only_folders Iff true, only folders are expanded.