summaryrefslogtreecommitdiff
path: root/desktop/browser_history.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-29 22:47:25 +0000
committerVincent Sanders <vince@kyllikki.org>2014-10-29 22:47:25 +0000
commitb1ee46cfb3f9617115e313da500d9b08d01ac345 (patch)
tree3cc7059672a9286d3e24683c7eef1230978c3c7e /desktop/browser_history.h
parenta221fa721360e4aef1488eddc4891e10c26cb73d (diff)
downloadnetsurf-b1ee46cfb3f9617115e313da500d9b08d01ac345.tar.gz
netsurf-b1ee46cfb3f9617115e313da500d9b08d01ac345.tar.bz2
make adding a history entry return an error code.
This returns the error code to the caller instead of (sometimes) warning the user directly.
Diffstat (limited to 'desktop/browser_history.h')
-rw-r--r--desktop/browser_history.h12
1 files changed, 11 insertions, 1 deletions
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);