From 4d190d89ee4581ac0712b34095072455adad93b9 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Sat, 26 Jun 2004 22:31:34 +0000 Subject: [project @ 2004-06-26 22:31:34 by rjw] Visual representation of navigation features availble svn path=/import/netsurf/; revision=1015 --- riscos/history.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index 12949d59a..8655b76dc 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -610,3 +610,27 @@ void history_forward(struct browser_window *bw, struct history *history) history->current = history->current->forward_pref; browser_window_go_post(bw, history->current->url, 0, 0, false); } + + +/** + * Check whether it is pssible to go back in the history. + * + * \param history history of the window + * \return true if the history can go back, false otherwise + */ + +bool history_back_available(struct history *history) { + return (history && history->current->back); +} + + +/** + * Check whether it is pssible to go forwards in the history. + * + * \param history history of the window + * \return true if the history can go forwards, false otherwise + */ + +bool history_forward_available(struct history *history) { + return (history && history->current->forward_pref); +} -- cgit v1.2.3