diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-27 20:56:43 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-27 20:56:43 +0100 |
commit | 77a090e9d0619c6e3c23e453d4ec8884de594901 (patch) | |
tree | 1329f029f8706267f751e72d87c4049369492a8a /desktop/hotlist.h | |
parent | 43d1e777df24d2a843a88c021acfeb82f9d31a40 (diff) | |
download | netsurf-77a090e9d0619c6e3c23e453d4ec8884de594901.tar.gz netsurf-77a090e9d0619c6e3c23e453d4ec8884de594901.tar.bz2 |
Functions to add entry/folder at y-coord or at selection.
Diffstat (limited to 'desktop/hotlist.h')
-rw-r--r-- | desktop/hotlist.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/desktop/hotlist.h b/desktop/hotlist.h index 92fc5771f..4a7ef2f01 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -84,6 +84,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. * * \param x X coordinate to render treeview at |