From b1ee46cfb3f9617115e313da500d9b08d01ac345 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 29 Oct 2014 22:47:25 +0000 Subject: make adding a history entry return an error code. This returns the error code to the caller instead of (sometimes) warning the user directly. --- desktop/browser_history.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'desktop/browser_history.h') diff --git a/desktop/browser_history.h b/desktop/browser_history.h index f3e524baf..d7b2b255e 100644 --- a/desktop/browser_history.h +++ b/desktop/browser_history.h @@ -36,7 +36,17 @@ struct redraw_context; nserror browser_window_history_create(struct browser_window *bw); nserror browser_window_history_clone(const struct browser_window *existing, struct browser_window *clone); -void browser_window_history_add(struct browser_window *bw, +/** + * Insert a url into the history tree. + * + * \param bw browser window with history object + * \param content content to add to history + * \param frag_id fragment identifier, or NULL. + * \return NSERROR_OK or error code on faliure. + * + * The page is added after the current entry and becomes current. + */ +nserror browser_window_history_add(struct browser_window *bw, struct hlcache_handle *content, lwc_string *frag_id); void browser_window_history_update(struct browser_window *bw, struct hlcache_handle *content); -- cgit v1.2.3