From 77a090e9d0619c6e3c23e453d4ec8884de594901 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Aug 2013 20:56:43 +0100 Subject: Functions to add entry/folder at y-coord or at selection. --- desktop/hotlist.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'desktop/hotlist.h') diff --git a/desktop/hotlist.h b/desktop/hotlist.h index 92fc5771f..4a7ef2f01 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -83,6 +83,27 @@ void hotlist_remove_url(nsurl *url); */ void hotlist_update_url(nsurl *url); +/** + * Add an entry to the hotlist for given Title/URL. + * + * \param url URL for entry to be added, or NULL + * \param title Title for entry being added, or NULL + * \param at_y Iff true, insert at y-offest + * \param y Y-offset in px from top of hotlist. Ignored if (!at_y). + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror hotlist_add_entry(nsurl *url, const char *title, bool at_y, int y); + +/** + * Add a folder to the hotlist. + * + * \param url Title for folder being added, or NULL + * \param at_y Iff true, insert at y-offest + * \param y Y-offset in px from top of hotlist. Ignored if (!at_y). + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror hotlist_add_folder(const char *title, bool at_y, int y); + /** * Redraw the hotlist. * -- cgit v1.2.3