From c47b9f465cfdea1b37e7a5ff7e569290e4a0387e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 25 Apr 2017 11:52:47 +0100 Subject: Core hotlist API: Take save path at init, rather than fini. --- desktop/hotlist.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'desktop/hotlist.h') diff --git a/desktop/hotlist.h b/desktop/hotlist.h index ef54f6b8b..e38eac1c2 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -40,10 +40,13 @@ struct rect; * be called before URLs can be added to the hotlist, and before the * hotlist can be queried to ask if URLs are present in the hotlist. * - * \param path The path to hotlist file to load + * \param load_path The path to load hotlist from. + * \param save_path The path to save hotlist to. * \return NSERROR_OK on success, appropriate error otherwise */ -nserror hotlist_init(const char *path); +nserror hotlist_init( + const char *load_path, + const char *save_path); /** * Initialise the hotlist manager. @@ -78,10 +81,9 @@ nserror hotlist_manager_fini(void); * internal data. After calling this if hotlist is required again, * hotlist_init must be called. * - * \param path The path to save hotlist to * \return NSERROR_OK on success, appropriate error otherwise */ -nserror hotlist_fini(const char *path); +nserror hotlist_fini(void); /** * Add an entry to the hotlist for given URL. -- cgit v1.2.3