diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-29 23:15:51 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-29 23:15:51 +0000 |
commit | 8947af72ce5fb2600531a9a0f2ac711030b7e06a (patch) | |
tree | b01fb7242f14922b5ad7fba9c3900b319f7ee2af /desktop/browser_history.h | |
parent | b1ee46cfb3f9617115e313da500d9b08d01ac345 (diff) | |
download | netsurf-8947af72ce5fb2600531a9a0f2ac711030b7e06a.tar.gz netsurf-8947af72ce5fb2600531a9a0f2ac711030b7e06a.tar.bz2 |
make history update return error code.
This now returns errors instead of failing and inconsistantly calling
user warnings for some error paths.
Diffstat (limited to 'desktop/browser_history.h')
-rw-r--r-- | desktop/browser_history.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/browser_history.h b/desktop/browser_history.h index d7b2b255e..1aac41491 100644 --- a/desktop/browser_history.h +++ b/desktop/browser_history.h @@ -48,8 +48,17 @@ nserror browser_window_history_clone(const struct browser_window *existing, */ 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, + +/** + * Update the thumbnail for the current entry. + * + * \param bw The browser window to update the history within. + * \param content content for current entry + * \return NSERROR_OK or error code on faliure. + */ +nserror browser_window_history_update(struct browser_window *bw, struct hlcache_handle *content); + void browser_window_history_destroy(struct browser_window *bw); void browser_window_history_back(struct browser_window *bw, bool new_window); void browser_window_history_forward(struct browser_window *bw, bool new_window); |