diff options
-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. * |