Expose hotlist_export.

This commit is contained in:
Michael Drake 2013-08-28 10:59:56 +01:00
parent 39b68d0b83
commit eec80c561c
2 changed files with 11 additions and 6 deletions

View File

@ -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;

View File

@ -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.
*