From 951ad51cd45ba2e5f49fab169ccbabc8f98a5185 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 13 Sep 2013 14:24:25 +0100 Subject: Add functions to get first selected hotlist/global_history node data. --- desktop/global_history.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'desktop/global_history.h') 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 @@ -109,6 +109,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 * -- cgit v1.2.3