summaryrefslogtreecommitdiff
path: root/desktop/hotlist.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/hotlist.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/hotlist.h')
-rw-r--r--desktop/hotlist.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/hotlist.h b/desktop/hotlist.h
index c6e74f2cc..e5ae83499 100644
--- a/desktop/hotlist.h
+++ b/desktop/hotlist.h
@@ -201,6 +201,15 @@ void hotlist_keypress(uint32_t key);
bool hotlist_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 hotlist has a selection
+ */
+bool hotlist_get_selection(nsurl **url, const char **title);
+
+/**
* Edit the first selected node
*/
void hotlist_edit_selection(void);