diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-28 10:59:56 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-28 10:59:56 +0100 |
commit | eec80c561c8deb5b8b49bf6820fc171cccd5e82b (patch) | |
tree | f34be3115040f0dbfbf1a49ca47a0a584f15de94 /desktop | |
parent | 39b68d0b8309c55dfe00f3d91682149118dae411 (diff) | |
download | netsurf-eec80c561c8deb5b8b49bf6820fc171cccd5e82b.tar.gz netsurf-eec80c561c8deb5b8b49bf6820fc171cccd5e82b.tar.bz2 |
Expose hotlist_export.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/hotlist.c | 8 | ||||
-rw-r--r-- | desktop/hotlist.h | 9 |
2 files changed, 11 insertions, 6 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c index 9a429264c..581075cdf 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -905,12 +905,8 @@ static nserror hotlist_export_leave_cb(void *ctx, void *node_data, return NSERROR_OK; } -/* - * Save hotlist to file - * - * \return NSERROR_OK on success, or appropriate error otherwise - */ -static nserror hotlist_export(const char *path, const char *title) +/* Exported interface, documented in hotlist.h */ +nserror hotlist_export(const char *path, const char *title) { struct treeview_walk_ctx tw; nserror err; diff --git a/desktop/hotlist.h b/desktop/hotlist.h index 4a7ef2f01..743eb616b 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -104,6 +104,15 @@ nserror hotlist_add_entry(nsurl *url, const char *title, bool at_y, int y); */ nserror hotlist_add_folder(const char *title, bool at_y, int y); +/* + * Save hotlist to file + * + * \param path The path to save hotlist to + * \param title The title to give the hotlist, or NULL for default + * \return NSERROR_OK on success, or appropriate error otherwise + */ +nserror hotlist_export(const char *path, const char *title); + /** * Redraw the hotlist. * |